Open koneriranjith opened 7 years ago
which uploading dependancies you using ? I got same problem, trying to sort it out .
Image uploading work's fine. I'am using XMLHttpRequest() to uploading videos, but it's uploading thumbnail image not actual path. I posted here you can take reference -http://stackoverflow.com/questions/42575526/react-native-uploaded-video-it-saves-like-image
Hello @koneriranjith and @amitbravo I have fixed this issue. costomize RCTCameraRollManager.m file https://github.com/nakulkundaliya/react-native-camera-roll-picker I hope its work for you
Using FormData to send the POST request seems to work only with a file://
uri format.. has anyone figured this out?
@nakulkundaliya what's the fix you made? I couldn't find the commit on your fork repo..
@rodrigoreis22 You have two way to fix this issue. 1. you can write native code for write assets uri into temp folder other wise 2. you can user lib for convert assets url to file url.
I ended up using https://github.com/wkh237/react-native-fetch-blob
While uploading image to the server it seems this path is not acceptable. Any solution to get document directory path in uri
{ "uri":"assets-library://asset/asset.JPG?id=AC072879-DA36-4A56-8A04-4D467C878877&ext=JPG", }