File Upload in Windows Application ?
-
Hi how can i upload a file from desktop application to a web directory. I am using following code.
string fileName = @"E:\queries.txt"; System.Net.WebClient client = new WebClient(); client.UploadFile("http://ef-kam/Compaq/working/" + fileName, "PUT", fileName);
But i am getting following exception. "The remote server returned an error: (501) Not Implemented."Know Yourself Then Grow Yourself.
-
Hi how can i upload a file from desktop application to a web directory. I am using following code.
string fileName = @"E:\queries.txt"; System.Net.WebClient client = new WebClient(); client.UploadFile("http://ef-kam/Compaq/working/" + fileName, "PUT", fileName);
But i am getting following exception. "The remote server returned an error: (501) Not Implemented."Know Yourself Then Grow Yourself.
-
The PUT method is disabled by default in the web server. You have to enable it for the server to accept it.
--- b { font-weight: normal; }
thanks can u please tell me how i can enable it.
Know Yourself Then Grow Yourself.
-
thanks can u please tell me how i can enable it.
Know Yourself Then Grow Yourself.
Check out this article http://www.codeproject.com/cs/webservices/DimeBufferedUpload.asp[^]
Vasudevan Deepak Kumar Personal Homepage Tech Gossips