13
Views
3
Comments
[ResumableJS] Support browsing for files
resumablejs
Reactive icon
Forge asset by Vincent Koning
Application Type
Reactive

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

2021-01-15 16-58-19
Sherif Diab

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.

2020-09-21 08-42-47
Vincent Koning

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

2019-10-25 19-52-02
Leandro Oliveira
Champion

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.

Regards,

Leandro Oliveira

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.