Gmail HTML5 feature to "drop" attachments

I have seen this and I must admit that I am very impressed:


(source: blogspot.com )

http://gmailblog.blogspot.com/2010/04/drag-and-drop-attachments-onto-messages.html

I am pretty sure that this is an HTML 5 function (it is supported in Chrome and Firefox 3.5), and I was wondering if anyone knows what the browser function is called.

Bonus points for a lesson / article on how to do something like this!

+4
source share
2 answers

For the demo version of drag-n-drop HTML5 check:

http://html5demos.com/drag-anything

It seems that dragover , dragenter , dragexit , drop events + event.dataTransfer - all this works. Putting it along with several parts / form of ajax POST, as the link that the dorn gave, is more impressive, in my opinion. I hope this can be done a little easier than that.

+1
source

Source: https://habr.com/ru/post/1307077/


All Articles