Upload a folder in ASP.NET of Flash or Silverlight

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

Is there any way to upload in Flash or Silverlight?

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

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.

Method 2

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

Method 3

The JUpload project on Sourceforge has a handy open source implementation of what you’re looking for. Here’s a demo.

But IMO this is a UI nightmare compared to file-only js / flash based uploaders… applets are far too slow and clunky to find a place in modern websites.

And that approval box to allow access to the user’s system is not going to inspire any trust in your application, notwithstanding the security concerns. As far as the average joe is concerned, if they’re able to upload a few files without hassle, why should they have to face a strange dialog box for a folder?


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x