jQuery ajax upload with progress bar - no flash

66,674

Sure, it's possible. A couple sites with different code and tutorials are:

Share:
66,674
Chris
Author by

Chris

Updated on March 28, 2020

Comments

  • Chris
    Chris about 4 years

    I am looking for a file uploader similar to uploadify with progress bar that doesn't rely on flash, preferably using jQuery - is this possible?

  • toneplex
    toneplex over 12 years
    The t.wits.sg blog post references pecl.php.net/package/uploadprogress, which is a great solution.
  • Chris Clower
    Chris Clower over 11 years
    PHP can get the upload file size and return it to JS via AJAX. As a matter of fact, PHP can get all info about the file and return it via AJAX as a JSON string, and it would work in any browser that supports AJAX (including IE6). You don't need Flash. You do, however, still need to find a way to report the upload progress, which involves JS long polling and monitoring how much of the file is on the server vs. its filesize in PHP.
  • Murali N
    Murali N over 11 years
  • Hidden Android
    Hidden Android about 11 years