How can I upload files to server with ftp though code? my web host apperently dont allow ous to use the "regular" fileupload with in MVC or Web forms anymore on IIS7
I rather not use a third part app I use asp.net mvc 2, c#
There are various methods but the simplist in my opinion is to make use of the FtpWebRequest class. There is a nice example of a simple file upload, making use of it, here:
I use Rebex FTP for .NET - not free but a great little FTP library. It allows you to upload using a Stream so might meet your requirements.
WCF, maybe, is a choise.
This thread may be help you, Copy Files to FTP Server using WCF.
Some weeks ago, I just develop a project with WCF. I feel it is powerful and productivity.