Click here to Skip to main content
15,891,852 members
Articles / Programming Languages / C#

Uploading a file to web server/host using c#?

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
20 Jan 2013CPOL 0  
A nice open source C# FTP class - http://ftplib.codeplex.com/[^]using (FtpConnection ftp = new FtpConnection("ftpserver", "username", "password")){ ftp.Open(); ftp.Login(); ftp.SetCurrentDirectory("/images"); ftp.PutFile(@"c:\myphoto.jpg", "myphoto.jpg"); //...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
23 Mar 2012Uday P.Singh
I don't know why you are facing so much difficulty in search. A simple google search gives me these:Uploading Files in ASP.NET 2.0[^]File Upload with ASP.NET[^]hope it helps :)
Please Sign up or sign in to vote.
23 Mar 2012Ghost_x 4 alternatives  
hi everyone, im really stuck with this one. i have been searching and trying the whole day but nothing helped.i want to upload a file on my web server ! but i can't figure it out. i'm programming in c#please help me !
Please Sign up or sign in to vote.
24 Mar 2012MehdiNaseri
If you have made a window form application and you want to upload a file, you can use ftp managers such as: CuteFTP, Filezilla, TurboFTP, SmartFTP, etc. But If you make Asp website or Asp application or any other web application with visual studio then you can publish (upload) your website and...
Please Sign up or sign in to vote.
19 Jan 2013John Kenedy S.Kom
Use WebScrapper it currently ready to upload to 22 File host and it already analyzed it for you. If you don't find the file host you want in the WebScrapper package, you can create your own syntax by analyzing the file host's HTMLhttp://sorainnosia.com/Home/Article/WEBSCRAPPER[^]

License

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


Written By
Software Developer
Other Other
Programming is an art.

Comments and Discussions