Dragging and dropping file for upload ???
Moderator: General Moderators
Dragging and dropping file for upload ???
On a file-upload interface, instead of having to "browse" to choose the file to upload, is it possible to implement a drag-and-drop capability so that user will be able to simply drag a file from the desktop into the file upload window (or input box) ? How would i extract the file path data ? How would i prevent IE from simply opening the selected file in the browser window ? I would greatly appreciate any input !
-
jollyjumper
- Forum Contributor
- Posts: 107
- Joined: Sat Jan 25, 2003 11:03 am
FTP upload would also be my best guess to go. But I don't know if this is a good sollution, as I remember that a few years ago my win98 machine didn't support FTP uploading through my browser, but I don't know if this was a win98 issue, or a internet explorer version issue.
A while ago when I was thinking about a same kind of option I was thinking about creating a unique subfolder before the upload screen was shown, and make a ftp connection to this folder through an Iframe in the upload screen. When submitting the form which contained the upload iframe, the unique folder name can be given, so you can handle the fileuploads after that.
A few issues I can remember I was struggling with were:
- how to make sure all the files are uploaded before the form has been submitted or the page has been left
- how to make sure your server doesn't get floaded with unused files/folders(I guess you can clean them through a cron job script).
I hope my thoughts bring you some ideas.
Greetz Jolly.
A while ago when I was thinking about a same kind of option I was thinking about creating a unique subfolder before the upload screen was shown, and make a ftp connection to this folder through an Iframe in the upload screen. When submitting the form which contained the upload iframe, the unique folder name can be given, so you can handle the fileuploads after that.
A few issues I can remember I was struggling with were:
- how to make sure all the files are uploaded before the form has been submitted or the page has been left
- how to make sure your server doesn't get floaded with unused files/folders(I guess you can clean them through a cron job script).
I hope my thoughts bring you some ideas.
Greetz Jolly.