PHP Classes

PHP 5.4 Session Upload Progress Bar: Track the progress of file uploads using sessions

Recommend this page to a friend!

  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
This class can track the progress of file uploads using sessions.

It can check a session variable assigned to keep track of the progress of a file upload.

The class can return the current upload progress value in percentage.

The class can set the session variable to cancel a file upload in progress.

It can also move the file to a given directory after the upload has finished.

Documentation

PHP 5.4 - File Upload Progress Bar

This is an example how to create a progress bar using PHP 5.4 to calculate the progress of a file being downloaded.

I also used the jQuery framework to query AJAX to know the percentage of the progress in real time.

Finally, if you want more info concerning this PHP feature, you can visit the official PHP website or check my French ebook here.

Example of the progress bar

Server Requirements

PHP 5.4.0 or higher.

Author

Pierre-Henry Soria

Contact

By email at: pierrehenrysoria {{AT}} gmail {{D0T}} com or at: ph7software {{AT}} gmail {{D0T}} com

License

This source code is under the license Creative Commons Attribution 3.0 or later; See the LICENSE.txt file.



  Author Author  
Picture of Pierre-Henry Soria
Name: Pierre-Henry Soria <contact>
Classes: 43 packages by
Country: United Kingdom
Age: 32
All time rank: 39016 in United Kingdom
Week rank: 2 Up1 in United Kingdom Up
Innovation award
Innovation award
Nominee: 16x

Winner: 3x

Details

PHP 5.4 - File Upload Progress Bar

This is an example how to create a progress bar using PHP 5.4 to calculate the progress of a file being downloaded.

I also used the jQuery framework to query AJAX to know the percentage of the progress in real time.

Finally, if you want more info concerning this PHP feature, you can visit the official PHP website or check my French ebook here.

Example of the progress bar

Server Requirements

PHP 5.4.0 or higher.

Author

Pierre-Henry Soria

Contact

By email at: pierrehenrysoria {{AT}} gmail {{D0T}} com or at: ph7software {{AT}} gmail {{D0T}} com

License

This source code is under the license Creative Commons Attribution 3.0 or later; See the LICENSE.txt file.


  Classes of Pierre-Henry Soria  >  PHP 5.4 Session Upload Progress Bar  >  Download Download .zip .tar.gz  >  Support forum Support forum (3)  >  Blog Blog  
Name: PHP 5.4 Session Upload Progress Bar
Base name: php-session-upload
Description: Track the progress of file uploads using sessions
Version: 1.10
PHP version: 5.4
License: Freeware
All time users: 1330 users
All time rank: 2905
Week users: 0 users
Week rank: 196 Equal
 
  Groups   Screenshots Screenshots   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image HTTP HTTP protocol clients, headers and cookies View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Files and Folders Listing, accessing and manipulating files and folders View top rated classes

  Files folder image Screenshots  
/opt2/mlemos/httpd/htdocs/application/repository_browse.php 2939 form-progress-bar
File Role Description
Accessible without login Image file form-progress-bar Screen Form progress bar
Accessible without login Image file upload-form Screen Upload form


  Recommendations  

Large file upload handler
Looking for class that will handle large file uploads


  User ratings  
Not enough user ratings

  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Files folder imagestatic (2 directories)
Files folder image_screenshots (2 files)
Accessible without login Plain text file download_progress.ajax.php Example Example script
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file LICENSE.txt Lic. License text
Accessible without login Plain text file README.md Doc. Documentation
Plain text file Upload.class.php Class Class source
Accessible without login Plain text file upload.php Example Example script

  Files folder image Files  /  static  
File Role Description
Files folder imagecss (1 file)
Files folder imagejs (1 file)

  Files folder image Files  /  static  /  css  
File Role Description
  Accessible without login Plain text file common.css Data Auxiliary data

  Files folder image Files  /  static  /  js  
File Role Description
  Plain text file ProgressBar.class.js Class Auxiliary data

  Files folder image Files  /  _screenshots  
File Role Description
  Accessible without login Image file form_progress_bar.png Data Auxiliary data
  Accessible without login Image file upload-form.png Data Auxiliary data

Install with Composer Install with Composer - Download Download all files: php-session-upload.tar.gz php-session-upload.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
  Files folder image Files  
File Role Description
Files folder imagestatic (2 directories)
Files folder image_screenshots (2 files)
Accessible without login Plain text file download_progress.ajax.php Example Example script
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file LICENSE.txt Lic. License text
Accessible without login Plain text file README.md Doc. Documentation
Plain text file Upload.class.php Class Class source
Accessible without login Plain text file upload.php Example Example script

  Files folder image Files  /  static  
File Role Description
Files folder imagecss (1 file)
Files folder imagejs (1 file)

  Files folder image Files  /  static  /  css  
File Role Description
  Accessible without login Plain text file common.css Data Auxiliary data

  Files folder image Files  /  static  /  js  
File Role Description
  Plain text file ProgressBar.class.js Class Auxiliary data

  Files folder image Files  /  _screenshots  
File Role Description
  Accessible without login Image file form_progress_bar.png Data Auxiliary data
  Accessible without login Image file upload-form.png Data Auxiliary data

Install with Composer Install with Composer - Download Download all files: php-session-upload.tar.gz php-session-upload.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.