可以在不使用AJAX的情况下以某种方式显示文件上传的进度吗? [英] Can somehow show progress on file upload without using AJAX?

查看:71
本文介绍了可以在不使用AJAX的情况下以某种方式显示文件上传的进度吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我使用基本的多部分帖子上传了文件.然后,服务器接收到该请求,并开始执行服务器端代码. 在这种状态下,我可以以某种方式开始输出响应,并且在发送一些数据之后开始接收文件吗?最后,在上传文件后,我将输出其余响应.

Let's say that I upload a file using a basic multipart post. The server then receives the request and starts to execute the server side code. Can I somehow in that state start to output the response and after some data is sent start to receive the file? Finally when the file is uploaded I output the rest of the response.

是否可以在不使用Ajax的情况下显示文件上传进度?

If this is possible I can display file upload progress without using ajax?

我猜这可能取决于我在服务器端运行的软件.但是,假设我具有完全的网络控制权.

I guess this might depend on what I run server side. But let's assume that I have full network control.

推荐答案

它不是免费的AJAX,但它似乎可以做您想做的所有事情.至少您可以根据自己的喜好对解决方案进行反向工程...

It's not AJAX-free but it seems to do everything else you want. At the very least you might be able to reverse engineer a solution more to your liking...

http://digitarald.de/project/fancyupload/

这篇关于可以在不使用AJAX的情况下以某种方式显示文件上传的进度吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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