ProgerXP / FileDrop

Self-contained cross-browser pure JavaScript class for Drag & Drop and AJAX (multi) file upload.
filedropjs.org
The Unlicense
264 stars 61 forks source link

Click to upload only allowed once #77

Open cliquesoft opened 3 years ago

cliquesoft commented 3 years ago

If the user clicks on the FileDrop element (a <div> in my case), the process works as advertised. Clicking a second time would show the upload dialog box of the web browser, but no file upload would occur afterwards. Dragging-and-dropping files does not seem to have any issues.

ProgerXP commented 3 years ago

Are you picking the same file second time? The <input type=file> element that the drop zone is using under the hood is firing onchange only when the picked file has changed.

cliquesoft commented 3 years ago

Yes. I have tried the same file and a different file.

On 12/13/20, Pavel notifications@github.com wrote:

Are you picking the same file second time? The <input type=file> element that the drop zone is using under the hood is firing onchange only when the picked file has changed.

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/ProgerXP/FileDrop/issues/77#issuecomment-744052926