File upload from client side without use Fileupload controls [duplicate]

只愿长相守 提交于 2019-12-25 07:58:35

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!