有没有办法直接下载文件到Web服务器而不是客户端机器 [英] is there any way to download files directly to web server instead of client machine
本文介绍了有没有办法直接下载文件到Web服务器而不是客户端机器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大服务器---->我的电脑--------->网络主机------------>客户端
< br $>
或
大服务器----> --------->网站主机------------>客户端
Big server---->My PC --------->Web Host------------>Client
OR
Big server----> --------->Web Host------------>Client
推荐答案
不,一个简单原因:即使您成功将文件移动到服务器,也会将其称为上传,而不是下载。 :-)
阅读有关上传的内容;对于网站来说,这是相当普遍的。最简单的方法是使用方法POST创建一个Web表单,并在表单中创建< input type =file>
元素并处理在服务器端的ASP.NET代码中发布。
-SA
No, by one simple reason: even if you successfully move your file(s) to the server, it will be called "uploading", not "downloading". :-)
Just read about uploading; this is quite a commonplace for Web sites. The simplest way to do it is to create a Web form with the method "POST" and the<input type="file">
element inside the form and handle the post in your server-side ASP.NET code.
—SA
这篇关于有没有办法直接下载文件到Web服务器而不是客户端机器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文