PHP Classes

File Upload System: Validate and process file uploads

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 49%Total: 1,502 All time: 2,604 This week: 488Up
Version License PHP version Categories
file-upload 1.0GNU General Publi...4.0HTTP, Files and Folders
Description 

Author

This class can be used to validate and process file uploads.

It can check whether the uploaded file has one of several allowed file name extensions, whether the file size does not exceed a given limit, and check whether a file with the same name was not previously uploaded.

A valid file is copied to a given destination directory. If the file is an image, it creates copy of the image in JPEG format that does not exceed a given width or height, if necessary scaling it and preserving the original proportions.

Picture of Biju
  Performance   Level  

 

  Files folder image Files (2)  
File Role Description
Plain text file objupload.class.php Class Common Class for Uploading
Accessible without login Plain text file upload_test.php Example Example for uploading files

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,502
This week:0
All time:2,604
This week:488Up
 User Ratings  
 
 All time
Utility:68%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:49%StarStarStar
Rank:2852