问题
Possible Duplicate:
upload file from client to server without openFile dialog
I want to upload file on server, but i have just path of file(Local path like : D:\FolderName\FileName.txt)
. Is there any way to upload Local systems file on server with file path. I tried with server side but not possible. Is it possible through javascript/Jquery.
回答1:
I'm not sure if I completely understand what you want to do. I'm assuming you have a file on the client machine and want to uploaded it via HTTP to a server as if you were using a file upload element on a web form, but you don't want to use the browser.
I'd use the command line "curl" command. check out http://curl.haxx.se/docs/httpscripting.html
来源:https://stackoverflow.com/questions/10545227/file-upload-from-client-side-without-use-fileupload-controls