Hello,
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.
For example:
If I have text file with only 2 lines:
Pawel
End

then after uploading this file to server its content is:
-----------------------8c4b770cd594720
Content-Disposition: form-data; name="file"; filename="pawel.txt"
Content-Type: application/octet-stream

Pawel
End
-----------------------8c4b770cd594720

Can you help ? Thanks a lot.

Paweł Przybyła