Add files dynamically and upload when done #346
-
Hello I wanted to create the same behaviour as WeTransfer, which is :
And in my case it will upload them on my server. But I didn't get the part where I can manually trigger the upload with a button and upload multiple batch. Fortunatly I found exactly what I wanted to achieve in the storybook but I can't find the exact source code ... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @AntoninJuquel This has been on my list to demo for a while now, so thanks for the reminder :) I created a sandbox showing how to achieve what you described: Its pretty basic and doesnt take into account every edge-case of course but should help get you started. Here's how it looks like: 2022-03-18_13-17-14.mp4Three's also a guide based on the same example with a bit more explanation here - |
Beta Was this translation helpful? Give feedback.
Hi @AntoninJuquel This has been on my list to demo for a while now, so thanks for the reminder :)
I created a sandbox showing how to achieve what you described:
https://codesandbox.io/s/react-uploady-add-and-remove-before-upload-vk1rs5
Its pretty basic and doesnt take into account every edge-case of course but should help get you started. Here's how it looks like:
2022-03-18_13-17-14.mp4
Three's also a guide based on the same example with a bit more explanation here -
https://react-uploady.netlify.app/docs/guides/AddRemoveThenUpload/