Tuesday, March 08, 2011

An example file upload progress monitoring in Zend Framework 1.11

An example web application demonstrating usage of Zend_ProgressBar and jquery progressbar for monitoring progress of file uploads in Zend Framework 1.11.3.

Since file uploads are done to the folder APPLICATION_PATH/uploads, the application tries to create this folder if it does not exists. For this reason APPLICATION_PATH should be writable, or uploads folder created manually with necessary rights. The application also requires 'uploadprogress' PECL package since it uses 'uploadprogress_get_info' function for getting the information about upload progress.



The source code is at GitHub. Most action happens in indexController.php and index.phtml.

8 comments:

  1. Anonymous9:27 AM

    Thanks :)
    Ricardo

    ReplyDelete
    Replies
    1. Whats thanks?
      code is not working

      Delete
  2. Thanks.. We are always in need of practical examples. than theoraticals one .. :) Keep blogging and sharing !

    ReplyDelete
  3. Thank you so much for posting this working example. It helped me a lot in understanding how everything is working together. If you had Flattr on your page, I'd instantly donate. Btw, in your index.phtml there is an obsolete closing "script" tag on line 84 - just a minor glitch

    ReplyDelete
  4. I have a problem that i receuve operation success but i don't have a transfert of file

    ReplyDelete
  5. Anonymous2:27 PM

    Muchas gracias, personas como tú, ayudan a crear un mundo mejor, con sus aportes y conocimientos...

    ReplyDelete
  6. Anonymous5:41 AM

    Guys can you help me, the file upload works just fine but the bar doesnt show anything it always remains stuck at 0 percent.

    ReplyDelete