If I call System.Net.WebClient.UploadFile(fileUrl, "DELETE", localFileName), is the file at localFileName actually uploaded to the server? Is there a better way to accomplish this?
views:
215answers:
1
+1
A:
I had a quick look at the WebClient code with Reflector, and it seems to upload the file even if the method is DELETE. I think a better way of doing this would be to use an HttpWebRequest explicitly, where you can specify the method without uploading the file
Thomas Levesque
2009-12-17 01:43:14
HttpWebRequest worked. Thanks.
Aaron
2009-12-17 14:05:12