可以在不使用AJAX的情况下以某种方式显示文件上传的进度吗?

编程入门 行业动态 更新时间:2024-10-28 16:21:25
本文介绍了可以在不使用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...

digitarald.de/project/fancyupload/

更多推荐

可以在不使用AJAX的情况下以某种方式显示文件上传的进度吗?

本文发布于:2023-08-04 06:50:26,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1294020.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:进度   文件上传   情况下   方式   AJAX

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!