Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 10, 2012 06:29 AM by raju dasa
Member
3 Points
15 Posts
Dec 08, 2012 06:14 AM|LINK
Dear all,
I am writing a web page which enables dragging a file from outside IE8
and dropping in the web page. I can do this but need to get the file's
full path. I search the web, and find such a solution which doesn't work:
filename = event.dataTransfer.files[0].name
I checked the event variable and found that event.dataTransfer doesn't
have an attribute called files. I tried another way:
event.dataTransfer.getData("Text")
but it only returns a null. I do see other website which can drag-and-drop
files into the web page and upload it automatically, so this could be done
with IE8 or other browsers. The question is: how?
I look forward to your reply.
Regards,
alex
Contributor
2661 Points
1040 Posts
Dec 08, 2012 06:27 AM|LINK
http://www.w3schools.com/html/html5_draganddrop.asp
Here you can learn about dragging and dropping the elements and files.
All-Star
20155 Points
3328 Posts
Dec 08, 2012 07:08 PM|LINK
Hi,
I think Drag and Drop is supported in HTML5 compatible browsers - IE9+, Firefox 5+, Chrome10+ etc.,
http://www.thebuzzmedia.com/html5-drag-and-drop-and-file-api-tutorial/
Hope it helps u...
Star
14406 Points
2449 Posts
Dec 10, 2012 06:29 AM|LINK
IE is not supported for file drag&drop, check this:
http://www.sitepoint.com/html5-file-drag-and-drop/
channel5
Member
3 Points
15 Posts
drag and drop files
Dec 08, 2012 06:14 AM|LINK
Dear all,
I am writing a web page which enables dragging a file from outside IE8
and dropping in the web page. I can do this but need to get the file's
full path. I search the web, and find such a solution which doesn't work:
filename = event.dataTransfer.files[0].name
I checked the event variable and found that event.dataTransfer doesn't
have an attribute called files. I tried another way:
event.dataTransfer.getData("Text")
but it only returns a null. I do see other website which can drag-and-drop
files into the web page and upload it automatically, so this could be done
with IE8 or other browsers. The question is: how?
I look forward to your reply.
Regards,
alex
Afzaal.Ahmad...
Contributor
2661 Points
1040 Posts
Re: drag and drop files
Dec 08, 2012 06:27 AM|LINK
http://www.w3schools.com/html/html5_draganddrop.asp
Here you can learn about dragging and dropping the elements and files.
~~! FIREWALL !~~
roopeshreddy
All-Star
20155 Points
3328 Posts
Re: drag and drop files
Dec 08, 2012 07:08 PM|LINK
Hi,
I think Drag and Drop is supported in HTML5 compatible browsers - IE9+, Firefox 5+, Chrome10+ etc.,
http://www.thebuzzmedia.com/html5-drag-and-drop-and-file-api-tutorial/
Hope it helps u...
Roopesh Reddy C
Roopesh's Space
raju dasa
Star
14406 Points
2449 Posts
Re: drag and drop files
Dec 10, 2012 06:29 AM|LINK
Hi,
IE is not supported for file drag&drop, check this:
http://www.sitepoint.com/html5-file-drag-and-drop/
rajudasa.blogspot.com || blog@opera