views:

511

answers:

3

Dear all

Is there any way to upload entire folder (a folder) in asp.net?

Is there any way to upload in Flash or Silverlight?

A: 

AFAIK, you cannot upload an entire folder (in flash at least). You can upload a single file using the FileReference class in flash.

Amarghosh
+1  A: 

You can use Flash (and probably Silverlight) to select all the files in a folder to upload, however you cannot select a folder or recurse folders.

Here is an exmaple that uses flash as the visual front end: http://www.codeproject.com/KB/aspnet/FlashUpload.aspx

Here is an example that uses flash for the multiple file upload by uses JQuery for the visuals: http://www.uploadify.com/demo/

In order to achieve selecting folders you will need to build an ActiveX control or Java Applet which has a lot more control over the operating system.

Mark Redman
Isn't any chance to upload folders?
emdadgar2
If you mean selecting folders to upload the files within, then no.
Mark Redman
+1  A: 

Unfortunately, you can't upload entire folders using Silverlight, Flash, or HTML 5.

You should use Java/ActiveX to achieve it (ex. uploader from aurigma):

sfedor
Thanks, but Is there any open source solution?
emdadgar2
Unfortunately, I don't know such soultions. Most of open source uploaders are based on Flash/Silvelight/HTML 5 technologies, which doesn't support to work with folders.
sfedor