react-native-fetch-blob icon indicating copy to clipboard operation
react-native-fetch-blob copied to clipboard

react-native-fetch-blob image upload failed for android(always receives zero bytes)

Open nisharafic opened this issue 7 years ago • 0 comments

Hi,

when i trying to upload image using RNFetchBlob to post via WebAPI. I always get file as null(zero bytes).

Ios Working fine but android i could not able to upload image. can you please tell me what is the issue.

Json Which i post

[{"name":"value","data":"5b757da2499fac2f30c33bf4"},{"name":"postType","data":"0"},{"name":"message","data":""},{"name":"file","filename":"IMG_20181026_164857.jpg","data":"RNFetchBlob-file://content://com.google.android.apps.photos.contentprovider/-1/1/content%3A%2F%2Fmedia%2Fexternal%2Ffile%2F88/ORIGINAL/NONE/70942257"},{"name":"externalSourceId","data":""},{"name":"externalSourceType","data":0}]

Environment details

React Native Environment Info: System: OS: macOS 10.14 CPU: x64 Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz Memory: 71.52 MB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 8.7.0 - /usr/local/bin/node npm: 5.6.0 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 12.0, macOS 10.14, tvOS 12.0, watchOS 5.0 IDEs: Android Studio: 3.2 AI-181.5540.7.32.5014246 Xcode: 10.0/10A255 - /usr/bin/xcodebuild npmPackages: react: 16.6.0-alpha.8af6728 => 16.6.0-alpha.8af6728 react-native: 0.57.3 => 0.57.3 npmGlobalPackages: create-react-native-app: 1.0.0 react-native-cli: 2.0.1 react-native-git-upgrade: 0.2.7 react-native-vector-icons: 4.4.2 react-native-video-recorder: 0.2.0

nisharafic avatar Oct 27 '18 15:10 nisharafic