2

I currently have a PHP script I use to upload image files but I'm trying to find or create a simple jquery progress bar for the upload.

Does anyone know of a script I could use to do this? I don't want to replace my entire upload mechanism because it works really well. I just want to display the upload status to the user.

Any suggestions on how I might be able to get the current status from PHP and pass it off to jquery?

3
  • 1
    Just FYI, the majority of these scripts use flash to perform the upload since the nature of HTTP is request/response. The flash objects allow the developer to tell how much of the file has been uploaded. It's not really what you'd expect: some sort of callback from PHP. Commented Jan 1, 2012 at 20:05
  • I was hoping for some sort of callback from PHP so I could create the jquery progress bar myself. I really want to avoid flash because many of my users are on apple products where flash isn't supported. Commented Jan 1, 2012 at 20:11
  • 2
    If they're on iOS, they aren't able to upload files anyway so the flash uploader won't be an issue. If you needed to implement a progress bar that isn't related to file uploads, jQTouch has one: jqtouch.com Commented Jan 1, 2012 at 20:16

2 Answers 2

5

http://www.johnboy.com/php-upload-progress-bar is a simple solution.

It doesn't require flash which is always good!

If i'm correct, however, you can't upload files from Apple mobile devices.

Sign up to request clarification or add additional context in comments.

1 Comment

That's a clever solution, using the APC api. I've never seen that before. One note however, the way they're handling that file upload is dangerous. Be sure to review the file upload security docs: php.net/manual/en/features.file-upload.php
1

See http://pixeline.be/experiments/jqUploader/

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.