Drag and drop browser file upload?

Posted on 2003-03-20
Medium Priority
Last Modified: 2008-02-26
Hi all,

Does anyone know of a (Preferably non-applet/activeX) means of allowing a user to upload a file to a server by dragging and dropping it into their browser?


Question by:robbiemorgan
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 8173716
I dont think so directly. You might have to use an applet or activex control to accomplish this.

Normally you would insert an <input type="file ...> to allow upload, but this tag does not allow scripting to specify the source file due to obvious security reasons.

Author Comment

ID: 8173800
So, even if I can get the file location, I can't even update the form element to allow it to be uploaded?! I didn't know that. Oh dear, it really does look like my hands are tied on this one.

Do you know anything about signed JavaScripts? Perhaps it could be done that way. I know Netscape supports them, but maybe IE doesn't.

The only problem with using applets is that, apparently, drag and drop uploading is only supported in later versions of the JRE. Hence, I'd have to have my users download the latest plug-in; not an option, as I need to avoid big downloads.

ActiveX is another possibility as you say, but that would exclude netscape users.

What a nightmare! Any further thoughts?


LVL 19

Expert Comment

ID: 8175122
An FTP client. THat works exactly the way you want -- the user connects, finds the file using a Windows Explorer type interface, drags the file to the remote computer, and it's uploaded.

Or, if your server is set up correctly and they've got the right version of Windows, they can use Web Folders/Network Places to connect, which is EXACTLY like any other file move/copy in Windows.

You don't need a browser, ActiveX, etc. If they use Web Folders/Network Places, it's built in, and FTP clients are cheap/free.
Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.


Expert Comment

ID: 8176648
you can also do it through the browser with a single line if that is what your client or whoever feels comfortable with.



  then it will look like a directory on their PC...  (this is for windows, I don't know if that will work in unix based systems)

Author Comment

ID: 8179615
Thanks for your comments guys. FTP is an option. However, I need to be able to contain the drag and drop functionality within a frame based interface.

Unfortunately, as I understand it, dragging and dropping is not supported for a framed FTP session...

Expert Comment

ID: 10200197
It it possible to open a remote FTP session in a frameset using the URL format suggested by SouthFlorida - and you can drag files in and drop them to upload, or drag files out to drop on the desktop or wherever to download
but as soon as you doube-click on a folderit makes the browsing frame the top, i.e. you lose the frameset, which probably defeats the object
we've used this approach, but just opened the FTP browser in a new window whcih the user can use until finished then close - not the nicest solution, so I'm waiting with bated breath on this one
or of course you could develop/but java/activex components


Expert Comment

ID: 10531214
At the moment, the ONLY ways to go this through a browser are:
1) to use Web Folders (WebWoman said that first)
2) use Explorer FTP (SouthFlorida 1st)
3) Java/ActiveX compoent (robbiemorgan - the asker)

It's up to robbiemorgan how to close it. It's probably fair that points are refunded as he hasn't really had the answer he's looking for.

Accepted Solution

CetusMOD earned 0 total points
ID: 10742866
PAQed - no points refunded (of 250)

Community Support Moderator

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses
Course of the Month8 days, 5 hours left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question