PHP 上传进度状态

发布于 2024-09-30 00:50:04 字数 206 浏览 2 评论 0原文

我需要显示上传状态(总大小,当前上传大小和上传速度)但是每个脚本都需要库,我不知道它是如何工作的(我在Windows下使用XAMPP)...我只有APC Lib。

我尝试了 FancyUpload,但即使在演示中我也收到此错误: 错误导致发送或加载操作失败(错误#2038) 我尝试了 SWFUpload,但收到了相同的消息。

有什么想法吗?

谢谢!

I need to show upload status (Total size, curent uploaded size and upload speed) But every script need library and I don'T know how it work (I use XAMPP under Windows)... I have only APC Lib.

I tried FancyUpload, but even in the demo I got this error :
Error caused a send or load operation to fail (Error #2038)
And I tried SWFUpload, but get the same message.

Any idea?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

菊凝晚露 2024-10-07 00:50:04

看看Uploadify,易于使用并提供示例。
它有一个你想要的进度条,它显示速度和已上传的字节数。
易于配置。

需要 jQuery 1.3.2+ 才能正常工作。

Take a look at Uploadify, easy to use and allot of examples.
And it has a progress bar that you wanted, and it shows the speed and how many bytes that have been uploaded.
Easy to configure.

jQuery 1.3.2+ is required for this to work.

扶醉桌前 2024-10-07 00:50:04

嗯,这很奇怪,但这是我的设置:

'uploader': '/_PATH_TO_YOUR_/uploader.swf', // Path to uploader.swf
'cancelImg': '/_PATH_TO_YOUR_/cancel.png', // Path to any cancel image
'script': '/_PATH_TO_YOUR_/upload.php', // Path to your upload script, you may change this to something else, depends on what your server is running
'folder': '/uploaded/',  // Your upload filder
//'fileDesc': 'Images Only (*.PNG, *.JPG, *.JPEG, *.GIF)', // Use this if you want to allow only image uploads, is shown when you press the Browse button in side the file types box
//'fileExt': '*.png, *.jpg, *.gif, *.jpeg', // Allowed file extensions
'sizeLimit': 52428800, // Max file size
'simUploadLimit': 1, // Only 1 upload at the same time, 0 = unlimited uploads at the same time
'multi': true, // Allows multi-upload, you can select more then 1 file/image
'buttonText': 'Select Files', // This I don't know if it works
'checkScript': '/source/interface/addons/uploadify/check.php', // Path to your upload check script
'displayData': 'speed', // What to display when you start the upload
'buttonText': 'Browse', // The browse button, .swf file

如果可以的话,您可以发布到目前为止您拥有的 JavaScript,这样我就可以帮助您:)

hmm, that's wierd, but here is my settings:

'uploader': '/_PATH_TO_YOUR_/uploader.swf', // Path to uploader.swf
'cancelImg': '/_PATH_TO_YOUR_/cancel.png', // Path to any cancel image
'script': '/_PATH_TO_YOUR_/upload.php', // Path to your upload script, you may change this to something else, depends on what your server is running
'folder': '/uploaded/',  // Your upload filder
//'fileDesc': 'Images Only (*.PNG, *.JPG, *.JPEG, *.GIF)', // Use this if you want to allow only image uploads, is shown when you press the Browse button in side the file types box
//'fileExt': '*.png, *.jpg, *.gif, *.jpeg', // Allowed file extensions
'sizeLimit': 52428800, // Max file size
'simUploadLimit': 1, // Only 1 upload at the same time, 0 = unlimited uploads at the same time
'multi': true, // Allows multi-upload, you can select more then 1 file/image
'buttonText': 'Select Files', // This I don't know if it works
'checkScript': '/source/interface/addons/uploadify/check.php', // Path to your upload check script
'displayData': 'speed', // What to display when you start the upload
'buttonText': 'Browse', // The browse button, .swf file

If you could, you can post the JavaScript that you have so far, so I can help you :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文