natysoz / expo-images-picker

Multiple Asset Photos Videos selecting package for Expo SDK
MIT License
95 stars 35 forks source link

Upload Images #14

Closed KiltzX closed 3 years ago

KiltzX commented 3 years ago

Hi, first, Thank you for this framework, its so helpful

i need to upload selected images, have one method to do this ?

natemartins commented 3 years ago

One method is to upload to backend server or to a 3rd party file hosting system like Cloudinary

natysoz commented 3 years ago

you can use your backend to generate PRE SIGNED URL , send this back to front end , and use it to POST images to this PRE SIGNED URL

in this way you go from

Upload from Client > server > server upload to Cloudinary > server return urls to client

to

Client ask Url from server > server return urls (take some 100-200ms ? ) > client upload directly to cloudinary

Good luck , this is not an issue , your welcome to join my discord channel i will give support and ideas there

https://discord.gg/6XZ7Aqd2yK

KiltzX commented 3 years ago

Thank you guys, this resolve my problem i send file path in my request using loopback 3 storage component and my photo upload with success, thank you