Click here to Skip to main content
15,911,531 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I'm new to .NET. I am trying to upload to and download files from ftp. I am able to upload but the problem here is I want to show the present files in the ftp folder so that the user can select the file to download. How should I do it???

Thanks in advance
Posted

1 solution

You have to connect to the FTP, then get all files and folder info. Then show them on UI in a Grid or something.

You can have a download button for each file. You can use the code How to: Download Files with FTP[^] for getting the response stream. Then convert the stream to byte array and assign to the Response object for downloading in browser.

I found one example with similar concept - A web based FTP client[^]. But I don't guarantee, if it would work or not.

But you can work on the same logic to make it work with a little bit of research.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900