采用纯PHP / AJAX上传进度? [英] Upload progress using pure PHP/AJAX?

查看:103
本文介绍了采用纯PHP / AJAX上传进度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我敢肯定,这已被问过,但我似乎无法找到一个很好的答案,我在这里,要求...再次。 :)

I'm sure this has been asked before, but as I can't seem to find a good answer, here I am, asking... again. :)

有什么办法,使用HTML,JavaScript的/ AJAX和PHP的混合物时,报告文件的上传进度的实际情况?

Is there any way, using only a mixture of HTML, JavaScript/AJAX, and PHP, to report the actual progress of a file upload?

在回答任何提示的SWFUpload或类似:

In reply to anyone suggesting SWFUpload or similar:

我知道有关它的一切。去过这条道路。我在寻找一个100%的纯溶液(是的,我知道我可能不会得到它)。

I know all about it. Been down that road. I'm looking for a 100% pure solution (and yes, I know I probably won't get it).

推荐答案

如果你能加入PECL包到PHP,存在的上传进度包。

If you're able to add PECL packages into your PHP, there is the uploadprogress package.

最简单的方法是只使用SWFUpload的,虽然。

The simplest way would be to just use swfupload, though.

这篇关于采用纯PHP / AJAX上传进度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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