Click to See Complete Forum and Search --> : [RESOLVED] How to have multiple file selection window?


Kyleva2204
08-23-2008, 08:05 PM
Hello, how is it that sites like MobileMe and Flickr have a multiple file selection window for their uploads?

How can I incorporate one in my site?

Thanks,
Kyle

Kyleva2204
08-23-2008, 11:25 PM
Yet again, I figured it out on my own.. Anyways for those out there that want to know how to also, see: http://swfupload.org/



Google Crawl Tags: PHP Multiple Selection Select Upload AJAX Flash Files Photos Javascript

hastx
08-24-2008, 09:05 PM
That is a nice script, but I have been looking through the documentation and havn't found a way to have the upload start upon a submit. The list compiles and immediately uploads after selecting your files and clicking open.

There is a multi file flash uploader that I have used a lot in the past here:
http://www.element-it.com/MultiPowUpload.aspx

The interface doesn't have all the cool ajaxy stuff, but it allows you to add and remove files to a list and submit that list when finalized. That is handy when your files are in different directories, you can build a large list and then let it upload unattended.

If you notice a way to do this with the SWFUpload, post back. I like the script, but don't think I could use it in a business environment without figuring out how to allow users to review their list before upload.

Kyleva2204
08-24-2008, 09:10 PM
Yes, you can have a "submit" button be placed to let a user build up their list. It took me awhile to learn their entire methods of doing things.. Its quite complicated, if your basing it off their "simple php demo" then look inside the "handelrs.js" file, and look for the function "fileDialogComplete" - thats whats called when the user has selected the files.. Just comment out "this.startUpload()". Then on your form, add a button and make an onclick action to do this: "swfu.startUpload()", you can also continue to add files to the list as they are being uploaded.. You can also delete the files from the list, or cancel them (they do the same thing depending on if they are uploading, or are queued)

hastx
08-24-2008, 09:15 PM
Thanks for the info. I will try this out tomorrow, implementing this script would make a nice visual upgrade for one of my sites.

Kyleva2204
08-24-2008, 11:03 PM
Sure thing, here is my use of the script. I'm going to add a lot more to it later on, but after fliddling for hours on end and getting something I'm proud of.
Photo Uploads (http://photos.optimalconnection.net/views/new_upload/)

I have attached the source code: (For use with AEYNIAS Framework)
the attached ZIP also has the framework with it, you can either install the files yourself or just drag over the "aeynias_framework_with_photos_upload" folder to, dont forget to change the config.php file to suite your site! (mainly just change the $doc_url and $root_url

You can download the framework and see updates at: aeynias.optimalconnection.net



[ATTATCHMENT]download (http://aeynias.optimalconnection.net/Aeynias_with_photos_upload.zip)


Please take note, if you really don't want to bother with AEYNIAS, just look in the files /actions/upload.php and /actions/upload_form.php inside the "changes_to_aeynias" folder... In reference the @doc_url and $doc_url are there to replace them from the config.php file

hastx
11-01-2008, 03:51 PM
Kyleva2204, Heads up ...SWFUpload breaks in Flash 10.

Check Here (http://swfupload.org/forum/generaldiscussion/551)
and here (http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=675&threadid=1362693&enterthread=y#4981382)

I got hit by this just this morning, and to my knowledge now one has provided a solution without some major code revisions.