Click here to Skip to main content
15,888,341 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all I have a requirement to upload a text file from a Winform app to a known directory on a Web server - how can I achieve this ?

What I have tried:

Nothing as I want to know the best way before going down the wrong path
Posted
Comments
Gautham Prabhu K 24-Feb-16 10:28am    
Try using BITS
pkfox 24-Feb-16 11:17am    
Bits ?
Ben J. Boyle 24-Feb-16 11:21am    
Background Intelligent Transfer Service (BITS)

https://msdn.microsoft.com/en-us/library/aa362708(v=vs.85).aspx
Richard Deeming 24-Feb-16 12:18pm    
Most web servers don't allow you to upload files directly to the server. Unless the server has specifically been configured to enable WebDAV, you either have to transfer the files using FTP, or send them to a specific handler on the server.

You'll need to know how the server will be handling your uploads before you can start.
pkfox 24-Feb-16 12:29pm    
Ok Richard thanks - I'm thinking of doing it through a WCF service now

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