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

pre-signed url?

Open YousefMohsen opened this issue 7 years ago • 11 comments

is it posible to upload with a pre-signed url ?
If not, it would be awesome you could implement that feature.

http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingHTTPPOST.html

YousefMohsen avatar Nov 05 '17 17:11 YousefMohsen

Yeah, don't want to leave my keys hardcoded anywhere.

arapocket avatar Dec 22 '17 00:12 arapocket

@benjreinhart Any idea of implementing this?

abhionlyone avatar Apr 28 '18 08:04 abhionlyone

Anyone else have a solution for this? Is there something like dotenv for react-native at least?

arapocket avatar May 23 '18 05:05 arapocket

+1

husseinraoouf avatar Sep 15 '18 15:09 husseinraoouf

+1

fozzarelo avatar Apr 12 '19 19:04 fozzarelo

I'm interested about using presigned url too because keys are exposed if used by this package way :/

CrackyStudio avatar Sep 25 '19 15:09 CrackyStudio

Still nothing ?

MayoudP avatar Jul 03 '20 13:07 MayoudP

Anyone have a solution for uploading via presigned url?

I use a lambda to generate and return to client, but not sure how to upload with it, in particular for react-native-background-downloader

dylan-westbury avatar Jul 14 '20 06:07 dylan-westbury

@MayoudP, @dylan-westbury: guys, there haven't been too many changes to this repo in the last year. & this conversation went stale a while ago. I liked this lib because it's robust, nice and simple, but if you need presigned urls I suggest you move on. I recommend you convert your pic to a blob and send it to s3 via a regular PUT call. dm if you need help w/that.

fozzarelo avatar Jul 16 '20 18:07 fozzarelo

I recommend you convert your pic to a blob and send it to s3 via a regular PUT call. dm if you need help w/that.

Unfortunately, I can't, I tried several librairies, but every time, when using the pre signed URL I received, I'm getting this error (was working well on RN 0.59.x and fail on RN 0.61.x :

"<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>EntityTooLarge</Code>
<Message>Your proposed upload exceeds the maximum allowed size</Message>
<ProposedSize>2025220</ProposedSize>
<MaxSizeAllowed>2023115</MaxSizeAllowed>
<RequestId>{...}</RequestId>
<HostId>{...}</HostId>
</Error>"

Was hoping this lib could help me ahah ^^'

MayoudP avatar Jul 24 '20 09:07 MayoudP

+1 if this is implemented it would be great.

talhafayyaz12 avatar Sep 01 '20 13:09 talhafayyaz12