文件上传和下载 [英] File Upload and download

查看:59
本文介绍了文件上传和下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想开发文件上传和下载功能。我想知道是否可以使用任何客户端脚本。我不想使用任何服务器端脚本。



Rgds

SNI

Hi,
I want to develop file upload and download functionality. I would like to know whether it is possible using any client side scripting. I dont want to use any server side scripting.

Rgds
SNI

推荐答案



就个人而言,我不认为你用 0%服务器端编码实现这一点。每当文件必须上传到服务器时,服务器上必须有一些代码执行此操作。如果您不想让用户感觉刷新或重新加载,请使用 AJAX或JQuery ,提供图形请等待消息,或使用户界面友好。在后面的代码中执行下载或上传代码。选择最适合您建筑的方法。





希望它有所帮助。
Hi,
Personally, I do not think you achieve this with 0% server side coding. whenever the file has to be uploaded to server, there must be some code on server doing this. if you do not want to make user feel on refreshing or reloading, use AJAX or JQuery, to give graphical "Please Wait" message, or make UI much user friendly. Perform the download or upload code in code behind. Select the best approach that suits your architecture.


hope it helps.


这篇关于文件上传和下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆