Upload File via FTP using ASP.net 1.1
-
Use the Save AS.. method for file upload control to save youe file on to server then give the path for your server where you want to store the file.
-
Use the Save AS.. method for file upload control to save youe file on to server then give the path for your server where you want to store the file.
FTP in ASP.NET 1.1 is a bit cumbersome process compared to .NET 2.0 where different new classes have been added. You may view following forum post which gives an idea on how to create your own FTP client in 1.1: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=421403&SiteID=1 Also note that in order to write an ASP.NET application that allows users to transfer files to and from FTP servers, the files must make two trips. To upload files from a browser to the FTP Server would require: 1. The files to be located on the web server, because this is the FTP client. Therefore, the files must be uploaded to the web server from the browser. This is done using HTTP and not through FTP. 2. Once a file is on the web server, it can then be transferred to the FTP server using FTP communication. The crux is, you have to use HTTP as well as FTP communication for the same
Regards, Amit Pal