
Error 405(Method not allowed) error in using webclient.uploadfile method
Thanks Elan for the help .
I am able to upload the file to my web directory using "PUT" instead of
"POST"
Only problem is that header of the request is also written on file.for
example if my file name is "1.txt" and content of the file is
"elan" then file which is uploaded on the server has content like this
-----------------------8c405c905b24bd0
Content-Disposition: form-data; name="file"; filename="1.txt"
Content-Type: application/octet-stream
elan
-----------------------8c405c905b24bd0
Please help me in solving this problem also since I could not find any thing
in webclient class to get rid of these headers.
Thanks in advance
Sandeep garg
Quote:
> Hi,
> You may check the following similar post for some possible reasons:
http://groups.google.com/groups?q=%22www.myserver.com%22+and+post+and...
d+UploadFile&hl=zh-CN&lr=&ie=UTF-8&oe=UTF-8&selm=%23rRmohF8BHA.2256%40tkmsf
t
Quote:
> ngp02&rnum=1
> Regards,
> Elan Zhou
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> Got .Net? http://www.gotdotnet.com