react-native-aws3 icon indicating copy to clipboard operation
react-native-aws3 copied to clipboard

File Upload Dont work in Android

Open bruno1pb13 opened this issue 3 years ago • 3 comments

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", },

bruno1pb13 avatar Aug 23 '21 17:08 bruno1pb13

Facing the same issue with android, please resolve this ASAP.

govind-v-natex avatar Feb 01 '22 10:02 govind-v-natex

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?

sanoopks avatar Mar 28 '22 12:03 sanoopks

I was having the same problem on android, I replaced type: "mp4" with type: "video/mp4" and it was resolved

joumanam avatar Sep 06 '22 16:09 joumanam