Skip to content Skip to sidebar Skip to footer

Making Drag And Drop Upload With Less Javascript

I'm trying to make an upload holder for my website, so users can easily drag and drop a file on it. there is a lot of libraries and events for doing that, but I need a simple way.

Solution 1:

Put the form on a hidden iframe. Use an ordinary div for the target. When the file is dropped, catch the event and update the input, then submit as post. The result is ajax-like uploading via file drag and drop.


Post a Comment for "Making Drag And Drop Upload With Less Javascript"