Hi man, great component and great demo app!
I was wondering why not support browsing for a file? I don't know if the library just added this option, but from ResumableJS:
"To allow files to be either selected and drag-dropped, you’ll assign drop target and a DOM item to be clicked for browsing:
r.assignBrowse(document.getElementById('browseButton')); r.assignDrop(document.getElementById('dropTarget'));"
With assignBrowser we could allow the user to click a button/link to browse for files so the UI is not tied up with a drag and drop box and can be used in mobile use case scenarios for example.
Regards,
Leandro Oliveira
You can customize it by yourself just change the OnReady client action in Resumable Web block to use the broswing function
You can either replace it or utilize it to be dynamic based on input parameter.
Hi Leandro,
Creating a default widget for this is on the drawing board. I just haven't found the time to do this yet but it will come eventually. In the mean time you can use the method @Sherif Diab provided.
Greetings,
Vincent
Hi Sherif and Vincent,
I forgot to share the implementation that we used:
One parameter for drag/drop and another for browsing, which leaves the decision up to the developer consuming the library.