Discussion Area

ask questions, discuss topics, solve problems

This is a public Discussion Area  publicRSS

Thread

    • Drag and Drop with uploader
      Thread posted Jul 05 by LunaFlame
      292 Views, 1 Comment
      Title:
      Drag and Drop with uploader
      Content:

      I have seen many places on the net with a drag and drop functional file loading system that first allows a web visitor to open their own hard drives and upload their selection and drag that to a newly created or other destination folder on the site.

      Can anyone make a simplified example that shows for study;

      1. opens a dialog for the user to open their own hard drive to select a file(s).

      2. Ability to drag selected file from user hard drive.

      3. Have the selected drag file(s) "drag and drop" to selected drop enabled item that sends selected file to a specific folder on host website.

      If this is too complex to explain does anyone know of a good 'tut' for this kind of mechanism?

      I have a Win.Apach.Mysql.Php. configuration set up as a developer server btw.

      I doubt this matters but I want to be able to some day make websites give the function of uploading media files such as (.mp3, .jpg, .mov, .swf, ...etc) so the user can upload and display their work on a hosted page. I know this knowledge would help my career as a web developer/designer. Currently more designer but learning to dev a site.

      Thanks in advance to anyone out there in dev land *cheers*

    Comments

    • The current state of web browsers and security requirements prevents this kind of direct access to the hard drive, exactly the way you have described it.  With HTML <INPUT type="file"/> elements you can allow selection of individual files and Flash/flex extends this built-in functionality to allow the selection of multiple files.  From the examples of this functionality (like this one) you can create a server file system browsing UI in Flex with a server-side script (use caution!) then submit all of the files to the server through a form specifying which folder you want them to go to.

      Outside of this, if you have seen any upload functionality on a site that has more ability than that is done through a plugin or ActiveX control or possibly a java applet.