Log in

View Full Version : [Help] Drag and drop files?



Thomas
16-12-2011, 07:45 AM
Could someone tell mewhat languages I need to use and what i'd need to do to be able to let people just drag and drop the image they want to upload into the provided area.

Example:http://www.mediafire.com/

(I'd rather you didn't just give me code and say here, I'm trying to learn so just copy and pasting code does nothing for me.)

Chippiewill
16-12-2011, 07:19 PM
It's likely a HTML5 feature. Found an article with an example but you said you wanted to learn so I'm giving you the spec involved with it:
http://dev.w3.org/2006/webapi/FileAPI/

Thomas
16-12-2011, 09:41 PM
It's likely a HTML5 feature. Found an article with an example but you said you wanted to learn so I'm giving you the spec involved with it:
http://dev.w3.org/2006/webapi/FileAPI/
An example is what i wanted :P I meant i didn't want someone to do it for me.

Chippiewill
16-12-2011, 09:47 PM
http://www.thecssninja.com/javascript/drag-and-drop-upload
Just google drag and drop html5 upload.

Thomas
19-12-2011, 09:06 AM
How do you get the file information of the image you are dragging from your PC? (I know how to get the information of an image already on the website but not from your PC).

Chippiewill
19-12-2011, 05:35 PM
Urm, when you drag a file into the web browser it copies it as it's path so i guess if you drag it onto a "drag and drop" box it gets the path and using js uploads that file.

Thomas
19-12-2011, 06:35 PM
Urm, when you drag a file into the web browser it copies it as it's path so i guess if you drag it onto a "drag and drop" box it gets the path and using js uploads that file.
I knew I needed to do that but I don't know the code for it.

Chippiewill
19-12-2011, 06:40 PM
If you look through the files and documentation for this:
http://blueimp.github.com/jQuery-File-Upload/

You mind find what you're looking for.

Thomas
19-12-2011, 06:42 PM
If you look through the files and documentation for this:
http://blueimp.github.com/jQuery-File-Upload/

You mind find what you're looking for.
ok thanks.

Want to hide these adverts? Register an account for free!