aws-amplify / amplify-js

A declarative JavaScript library for application development using cloud services.
https://docs.amplify.aws/lib/q/platform/js
Apache License 2.0
9.4k stars 2.11k forks source link

Add support for multipart/formdata for uploading media #13420

Open GohilMahendra opened 10 months ago

GohilMahendra commented 10 months ago

Describe the feature you'd like to request

Hi, I had gone through image upload functionality using storage.put method in my react native project. I found very primitive approach to fetch the image and convert it to blog which should not the case in 2023. we should able to upload images just by providing the local path of image. so please add option for multipart/formdata to upload images using uri only

Describe your use case and how the feature would improve your experience.

suppose i need to upload a video now fetching it and converting into blob would not be good

Describe alternatives you've considered

i used fetch and converted media into blob for large files i don't think will be good to use this approach

Additional context

No response

ykethan commented 10 months ago

Thank you for filing this feature request.

cwoolum commented 1 month ago

Transferring this to the JS team which will be able to handle this feature request.

cwomack commented 3 weeks ago

@GohilMahendra, thank you for opening this feature request. We'll review this internally and reach out if we have further questions on context/use case from here.