'React Native Image Upload is not working with iOS but works fine with Android

I’m using react-native-image-crop-picker

I have upgraded my Flipper for iOS version 0.142

I have upgraded my library as well

var body = new FormData();    
body.append(‘image’, {
              name:
                Platform.OS === 'ios'
                  ? imagePicker['filename']
                  : `my_profile_${Date.now()}.${
                      imagePicker.mime === 'image/jpeg' ? 'jpg' : 'png'
                    }`,
              type: imagePicker.mime,
              uri: Platform.OS === 'android' ? imagePicker.path : imagePicker.path.replace('file://', ''), //  file:///data/user/0/com.cookingrn/cache/rn_image_picker_lib_temp_5f6898ee-a8d4-48c9-b265-142efb11ec3f.jpg
            });

This same code is working fine with Android The last is response I’m receiving after picking up image



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source