problem uploading file
-
hello to all of you out their i m using vb.net 2005, .net framework version 2.0. and trying to uploading file to my local server with my application. the problem comes when i try to upload a file to the server, with the code
My.Computer.Network.UploadFile("C:\Documents and Settings\Administrator\Desktop\ashish.txt", "http://192.168.0.3/isol/ashish.txt", "", "", True, 1000, FileIO.UICancelOption.ThrowException)
it throw an error 404 not found when i place a file having same name on the server, the program cannot throw any error but the file cannot be uploaded. if i replace the code with this one, the code works fine and it places the file on the located computer.My.Computer.Network.UploadFile("C:\Documents and Settings\Administrator\Desktop\ashish.txt", "file://///192.168.0.3/c/ashish.txt", "", "", True, 1000, FileIO.UICancelOption.ThrowException)
but this is not something like client/server this is simple network, i need to check it with online website. the server computer contain apache 2.0.59. i think the problem is with the configuration of apache. i m working on it. if some has any idea about that please let me know. any kind of help is highly appreciated. thanks in advancehelp everyone
-
hello to all of you out their i m using vb.net 2005, .net framework version 2.0. and trying to uploading file to my local server with my application. the problem comes when i try to upload a file to the server, with the code
My.Computer.Network.UploadFile("C:\Documents and Settings\Administrator\Desktop\ashish.txt", "http://192.168.0.3/isol/ashish.txt", "", "", True, 1000, FileIO.UICancelOption.ThrowException)
it throw an error 404 not found when i place a file having same name on the server, the program cannot throw any error but the file cannot be uploaded. if i replace the code with this one, the code works fine and it places the file on the located computer.My.Computer.Network.UploadFile("C:\Documents and Settings\Administrator\Desktop\ashish.txt", "file://///192.168.0.3/c/ashish.txt", "", "", True, 1000, FileIO.UICancelOption.ThrowException)
but this is not something like client/server this is simple network, i need to check it with online website. the server computer contain apache 2.0.59. i think the problem is with the configuration of apache. i m working on it. if some has any idea about that please let me know. any kind of help is highly appreciated. thanks in advancehelp everyone
-
If you want to upload a file using http, you need to post the file to a web page that can recieve the file. If you want to uplad a file using ftp, use the ftp protocol in the url instead of the http protocol.
--- single minded; short sighted; long gone;
i simply want to paste the file in the folder named upload on server is it necessary that their must be a page to get my file on server. can u tell me how can i rename files on server (this is an alternate of my application that i can upload files from third party tools and then rename the file as needed on server) if i simply replace the protocol from http from ftp it gives me the error an exception occured during a webclient request. the requested ftp command is not supported when using http proxy. have any idea then please let me know thanks
help everyone
-
i simply want to paste the file in the folder named upload on server is it necessary that their must be a page to get my file on server. can u tell me how can i rename files on server (this is an alternate of my application that i can upload files from third party tools and then rename the file as needed on server) if i simply replace the protocol from http from ftp it gives me the error an exception occured during a webclient request. the requested ftp command is not supported when using http proxy. have any idea then please let me know thanks
help everyone
eyes2007 wrote:
i simply want to paste the file in the folder named upload on server is it necessary that their must be a page to get my file on server.
Yes, if you want to use the http protocol. You can't save a file using the http protocol, you can only send a request to the server that contains the file data, and the page on the server can recieve the file data and save it as a file on the server.
eyes2007 wrote:
f i simply replace the protocol from http from ftp it gives me the error an exception occured during a webclient request. the requested ftp command is not supported when using http proxy.
You can't upload files to ftp when using a proxy. Try turning off the proxy, as suggested here: http://www.vbforums.com/showthread.php?t=384411[^]
--- single minded; short sighted; long gone;
-
eyes2007 wrote:
i simply want to paste the file in the folder named upload on server is it necessary that their must be a page to get my file on server.
Yes, if you want to use the http protocol. You can't save a file using the http protocol, you can only send a request to the server that contains the file data, and the page on the server can recieve the file data and save it as a file on the server.
eyes2007 wrote:
f i simply replace the protocol from http from ftp it gives me the error an exception occured during a webclient request. the requested ftp command is not supported when using http proxy.
You can't upload files to ftp when using a proxy. Try turning off the proxy, as suggested here: http://www.vbforums.com/showthread.php?t=384411[^]
--- single minded; short sighted; long gone;