FileDrop icon indicating copy to clipboard operation
FileDrop copied to clipboard

Clear the drop area

Open rihani opened this issue 6 years ago • 1 comments
trafficstars

How am i able to clear the drop area after a sucessful upload. I tried using Clear() but not working

zone.el.clear();

rihani avatar Dec 04 '18 04:12 rihani

Not all browsers support clearing the file input. Use zone.clear() (https://github.com/ProgerXP/FileDrop/blob/master/filedrop.js#L1145) or recreate the drop zone which works everywhere.

Also note that zone.el is an arbitrary element (like fieldset), not input or something with a value.

ProgerXP avatar Dec 04 '18 11:12 ProgerXP