文件从客户端上传不使用的FileUpload控件 [英] File upload from client side without use Fileupload controls
问题描述
可能重复:结果
<一href=\"http://stackoverflow.com/questions/10578803/upload-file-from-client-to-server-without-openfile-dialog\">upload从客户端文件到服务器,而中openFile对话框
我要上传服务器上的文件,但我刚才的文件路径(本地路径,如: D:\\文件夹\\ FILENAME.TXT)
。有什么办法来上传服务器上的本地系统文件,文件路径。我试图与服务器端,但不可能的。是否有可能通过JavaScript / jQuery的。
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.
推荐答案
我不知道如果我完全明白你想要做什么。我假设你在客户端计算机上的文件,并希望,如果你是一个Web表单上使用一个文件上传元素通过HTTP上传到一台服务器,但你不希望使用浏览器。
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.
我会用命令行卷曲命令。退房 http://curl.haxx.se/docs/httpscripting.html
I'd use the command line "curl" command. check out http://curl.haxx.se/docs/httpscripting.html
这篇关于文件从客户端上传不使用的FileUpload控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!