Skip to main content
February 11, 2008
Question

Selecting folders in the browse() dialog?

  • February 11, 2008
  • 2 replies
  • 284 views
Greetings all.

I'm creating a web app and I'm afraid I'm not that hot with Actionscript. We're using "SWFUpload" to handle multiple file uploading (it uses the .browse() dialog and lets you select multiple files) and it works, but I'm trying to add the capability to also being able to select folders (as if they were files), zip them recursively, and upload them just like the files but with an additional tag or marker.

I'm not sure how to proceed... the .browse() dialog is incapable of selecting folders, and the developers of SWFUpload have no idea either. Creating a custom control is almost impossible because Flash is too tight regarding the local filesystem... this also brings me doubts about the zipping process... is it even possible to zip a folder from the hard drive recursively (preserving all paths etc) and post it to a form online?

I'm using Flash 9.

Any help will be appreciated, I understand this will take some deep magic. Thank you!
This topic has been closed for replies.

2 replies

February 12, 2008
I am not sure about this. However, you might look here:

http://www.bytearray.org/?p=105

These guys have build a zip file/folder maker in AS3.
February 11, 2008
I forgot to mention, the "browse" method in question is from the FileReference object.
February 12, 2008
Hmmmm.
I'm going in circles on this one. Anyone?