?
Solved

Folder upload in FTP

Posted on 2011-10-10
5
Medium Priority
?
531 Views
Last Modified: 2012-05-12
Hi, I am uploading files successfully to FTP  using Asp.Net 'File Upload Control' . Now i stuck how to Upload Folders to FTP. While Uploading Folders to FTP , If that folder contains sub-folders these sub-folders will display in server table structure. And one more doubt ,how to select folders using 'File Upload Control' . If not Possible to select Folders using 'File Upload Control' how to select them? Is their any control to select ? Is it Possible to Upload Folder in C#.Net ?.Is their  Any Better way to upload folders  other than C#.net.? Please send Related links or Code . Thanks in Advance.
0
Comment
Question by:CPSRI
  • 3
  • 2
5 Comments
 
LVL 3

Expert Comment

by:karl-henrik
ID: 36942316
Try scanning the directory with System.IO.Directory.GetFiles() and System.IO.Directory.GetDirectories() then you can use ftp to upload the files one by one with iteration.
0
 

Author Comment

by:CPSRI
ID: 36943640
hai karl-henrik,
           how will i choose folder..? using File upload control it selecting only files . how can i select folder.
0
 
LVL 3

Expert Comment

by:karl-henrik
ID: 36946966
It's not possible to use the File upload control for that but you can create your own.. have a look at this example it's quite small and I think it is spot on to solve your problem.

Hope it helps
//Karl-Henrik
0
 
LVL 3

Accepted Solution

by:
karl-henrik earned 1500 total points
ID: 36946968
Err this example How to browse for folders
0
 

Author Closing Comment

by:CPSRI
ID: 36962438
thanks
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
Screencast - Getting to Know the Pipeline
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month16 days, 10 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question