Can somehow show progress on file upload without using AJAX?

狂风中的少年 提交于 2019-12-22 22:21:16

问题


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.

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.


回答1:


Why not just display a spinning icon? Google Image Search




回答2:


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/



来源:https://stackoverflow.com/questions/2920574/can-somehow-show-progress-on-file-upload-without-using-ajax

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!