Drag and drop files to the browser

I am looking for a way to mimic the Windows Live functionality of dragging and dropping files from Windows browser onto a web page in the browser and grabbing the filename. I think this functionality is accomplished with the following control

Microsoft.Live.Folders.RichUpload.UploadControl

Any pointers in the right direction to take care of the client

+1


source to share


1 answer


I did a bunch of digging to find out if this is possible without embedding an Active-X control, and it seems that you can't. There are various libraries you can use from your script to do this, but the main reason is this:

Javascript runs in a sandboxed environment that doesn't have access to the file system, this is for security purposes. Therefore, it cannot access OLE without using an Active-X control to access this type of framework.



I found a tutorial that is demonstrated here: http://straxus.javadevelopersjournal.com/creating_a_mozillafirefox_drag_and_drop_file_upload_script_p.htm

+1


source







All Articles