PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!

  Author Author  
Name: Pierre-Henry Soria <contact>
Classes: 12 packages by
Country: United Kingdom United Kingdom
Age: 26
All time rank: 70532 in United Kingdom United Kingdom
Week rank: 86 Up4 in United Kingdom United Kingdom Up


  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.

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  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: PHP 5.4 Session Upload Progress Bar
Base name: php-session-upload
Description: Track the progress of file uploads using sessions
Version: 1.3
PHP version: 5.4
License: Freeware
All time users: 1214 users
All time rank: 3057
Week users: 1 user
Week rank: 699 Up
 
  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  
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.