PHP Upload Progress Status
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 c开发者_Go百科aused a send or load operation to fail (Error #2038) And I tried SWFUpload, but get the same message.
Any idea?
Thanks!
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.
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 :)
精彩评论