i want to know how to do the drag and drop image upload.the thing i don’t understand is that how to let server know when a user drops an image inside a certain div or to body for uploading?is that supported in all common browsers ie,ff,chrome,safari. thank you 🙂
Share
I can tell you haven’t done much research.
Short answer is, no. There is no method that is supported in all major browsers that will detect when a user drops an image inside the client window.
Also, as Rajat Saxena pointed out in the comments, you’d have to inform the server of a file drop by sending an ajax request on the drop event.
HTML5
Here’s drag and drop from desktop to browser using HTML5 and javascript
JQuery
Here’s a drag and drop from desktop to browser using JQuery (Firefox and Chrome)
Other related links to plugins (not tested) and questions