FileDrop icon indicating copy to clipboard operation
FileDrop copied to clipboard

Click to upload only allowed once

Open cliquesoft opened this issue 4 years ago • 2 comments

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.

cliquesoft avatar Dec 11 '20 20:12 cliquesoft

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.

ProgerXP avatar Dec 13 '20 19:12 ProgerXP

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

On 12/13/20, Pavel [email protected] 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

cliquesoft avatar Dec 16 '20 21:12 cliquesoft