Fetch cannot find local formData file (after ImagePicker) : no such file or directory

On ios simulator, I upload a file selected by ImagePicker using fetch and formData.

I have this error :

Expo CLI 4.12.0 environment info:
    System:
      OS: macOS 11.6
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 12.21.0 - /usr/local/bin/node
      Yarn: 1.22.10 - /usr/local/bin/yarn
      npm: 6.14.11 - /usr/local/bin/npm
      Watchman: 2021.09.06.00 - /usr/local/bin/watchman
    Managers:
      CocoaPods: 1.11.2 - /usr/local/bin/pod
    SDKs:
      iOS SDK:
        Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0
      Android SDK:
        API Levels: 23, 29, 30, 31
        Build Tools: 28.0.3, 29.0.0, 29.0.1, 29.0.2, 29.0.3, 30.0.0, 30.0.1, 30.0.2, 30.0.3, 31.0.0
        System Images: android-30 | Google APIs Intel x86 Atom
    IDEs:
      Android Studio: 4.2 AI-202.7660.26.42.7486908
      Xcode: 13.0/13A233 - /usr/bin/xcodebuild
    npmPackages:
      expo: ^42.0.3 => 42.0.3
      react: 16.13.1 => 16.13.1
      react-dom: 16.13.1 => 16.13.1
      react-native: ~0.63.4 => 0.63.4
      react-native-web: ^0.17.1 => 0.17.1
    npmGlobalPackages:
      expo-cli: 4.3.0
    Expo Workflow: bare

Here is the uri :

"uri": "/private/Users/username/Library/Developer/CoreSimulator/Devices/6F4DCF12-1356-4A45-B9DF-98A539048CF9/data/Containers/Data/Application/C1316E82-EBF5-463B-880F-E9309654985F/Library/Caches/ImagePicker/491B819F-CFEF-4632-A81E-B584855902DB.png",

Hi @lc3t35

Could you please post a snippet of code with the ImagePicker and fetch calls?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.