react-native-s3
react-native-s3 copied to clipboard
Cannot upload files from asset-library url
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 Did you find an alternative?
@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
.
@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.
@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 ... 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 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.