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

New features

Open kelong opened this issue 8 years ago • 11 comments

Hey,

Very good library, thanks ! I also need fast get and deleteObject very fast :) I added get function:

`static get(fileUrl, options, type) { options = Object.assign({}, options, { key: (options.keyPrefix || ''), contentType: type });

  let url = `http://${ options.bucket }.s3.amazonaws.com/${ fileUrl }`;
  let method = "GET";
  let policy = S3Policy.generate(options);

  return Request.create(url, method, policy)
    .send()
    .then(setBodyAsParsedXML);

}` But it doesnt work. Any suggestions ? Thanks.

kelong avatar Mar 30 '16 18:03 kelong

Hey Kelong,

Thanks for trying out the lib!

It doesn't work because the policy is generated differently for the PutObject calls given we're following the Browser Based Uploads approach.

However, I have a branch for generating pre-signed URLs which would be used with GetObject and DeleteObject calls here. Unfortunately, that branch isn't currently working but it must be very close, as I followed amazon's docs as closely as I could. Until I get that working, that'll be your best bet. Feel free to submit a PR if you get it working :)

Others have asked me for that functionality as well so I will try to get to it soon.

Thanks!

benjreinhart avatar Mar 30 '16 19:03 benjreinhart

Thank you very much. Will try to do something, but I am new to this ;)

Thanks.

kelong avatar Mar 31 '16 20:03 kelong

Hey, Any progress ? Thanks.

kelong avatar Apr 05 '16 06:04 kelong

I unfortunately haven't been able to get to it yet. I'll try to take another pass this weekend if I can.

benjreinhart avatar Apr 08 '16 19:04 benjreinhart

Ok, thank you very much.

kelong avatar Apr 08 '16 19:04 kelong

Still no luck ? :(

kelong avatar Apr 19 '16 09:04 kelong

any word?

faceyspacey avatar May 13 '16 23:05 faceyspacey

presigned posts would be phenomenal! god speed @benjreinhart!

stantoncbradley avatar Jun 13 '16 03:06 stantoncbradley

Did anyone find a solution?

I don't mind submitting a PR, but as I'm new to s3, can someone detail what I'll need to do?

dcworldwide avatar Jun 25 '16 08:06 dcworldwide

Also working on presigned posts. I've used them with straight form-data but RN is proving to be tougher.

j4p3 avatar Jul 11 '16 23:07 j4p3

a way to get objects from the bucket is very much needed

edoantonioco avatar Feb 23 '19 15:02 edoantonioco