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

Cannot upload files from asset-library url

Open benjreinhart opened this issue 8 years ago • 6 comments

Passing an asset-library:// url to transfer utility is not allowed. Looks like this issue?

Anyways, is there an alternative for working with asset-library urls which are returned from the camera roll?

benjreinhart avatar Mar 16 '16 21:03 benjreinhart

@benjreinhart Did you find an alternative?

brianjd avatar May 12 '16 02:05 brianjd

@brianjd, @benjreinhart's react-native-aws3 can do. :D

I recently had a similar use case for asset-library://, I temporary use react-native-save-asset-library, and consider add this behavior to react-native-s3.

jhen0409 avatar May 12 '16 02:05 jhen0409

@brianjd yes react-native-aws3 should work for uploading files with either URL types and has the added benefit of no native dependencies. However, it currently only supports authenticated PutObject calls. I've been meaning to add more support because it has the potential to be a very useful library but unfortunately my time has been limited.

benjreinhart avatar May 12 '16 14:05 benjreinhart

@jhen0409 @benjreinhart Thanks for the responses. But in my case, use of the transferUtility is important, I think it will be a great boost for UX. So I will experiment with using react-native-save-asset-library , but I am concerned with file management.

brianjd avatar May 15 '16 15:05 brianjd

@brianjd ... what about the transfer utility do you think will be great for UX over another solution? Just curious because if there's something great that I'm missing I'd consider adding it.

benjreinhart avatar May 16 '16 14:05 benjreinhart

@benjreinhart A few reasons, the maturity of aws sdk, the ability to convert to background job and simply monitor from js when in foreground. I'll be dealing with people uploading 10+ high res images on avg at a time.

brianjd avatar May 16 '16 15:05 brianjd