react-native-aws3
react-native-aws3 copied to clipboard
File Upload Dont work in Android
On ios the upload works, but on android I get the following error
Possible Unhandled Promise Rejection (id: 27): Object { "headers": Object {}, "status": 0, "text": "Binary FormData part needs a content-type header.", }
in IOS
Object { "postResponse": Object { "bucket": "bucketname", "etag": "76cc2064fff35de674ec29c9khdgqdc79", "key": "8C8125E2-C184-4222-A1A8-C5B87EC03908.jpg", "location": "urlfile", },
Facing the same issue with android, please resolve this ASAP.
The issue commonly occurs if the type property in the S3 request payload is false. Can you guys check that you are passing the correct mime type in the request payload?
I was having the same problem on android, I replaced type: "mp4" with type: "video/mp4" and it was resolved