KarimMokhtar / react-drag-drop-files

Light and simple Reactjs drag and drop files library to use with very flexible options to change, so you put whatever the design you want for your drop-area. Users can drag and drop or even select the file anywhere in the window.
MIT License
245 stars 86 forks source link

Add optional property labelAfter to set label after drop operation #50

Open JorgenLindell opened 2 years ago

JorgenLindell commented 2 years ago

Summary

Introducing a label to be shown after the drop is completed. Current solution always says "File is uploaded", but in my use case the file should not be uploaded on drop, but rather at a click on a separate button. Then the default text is confusing for the user, as it seems that the upload is already done at that point.

Key Changes

Check List

Victor-Varghese commented 2 years ago

@KarimMokhtar can we merge this PR?

KarimMokhtar commented 2 years ago

@KarimMokhtar can we merge this PR?

Unfortunately, there are required changes that have not been made yet. If you could make them done it's gonna be great.

bumi commented 2 years ago

pretty please! the "upload another?" text is not matching when the actual submit only happens later and the user has to full out other form fields

danilloestrela commented 1 year ago

@KarimMokhtar what are the requirements needed to finish and merge this PR?