Problem with WebClient class
I have problem with upload a file to IIS server. If I use UploadFile (from
System.Net.WebClient class) method in way UploadFile(uriString, "POST",
fileName) but I receive error message: Error 405 - method not allowed
If I use "PUT" instead of "POST" then this file is uploaded to server but
this file has additional content.
If I have text file with only 2 lines:
then after uploading this file to server its content is:
Content-Disposition: form-data; name="file"; filename="pawel.txt"
Can you help ? Thanks a lot.
Re: Problem with WebClient class
>What's the point to use UploadFile.....?
>Do you have wife..?
>Let her do it !!!!
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL