Login   Register  
PHP Classes
elePHPant
Icontem

Safely Upload: Validate and process uploaded files

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2009-09-24 (5 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 469 All time: 5,471 This week: 1,891Up
Version License PHP version Categories  
safely-upload 1.0MIT/X Consortium License4.0HTTP, PHP 5, Files and Folders
Description Author  

This class can be used to validate and process uploaded files.

It can take array of data for a given uploaded file and can check it to verify whether it does not exceed the maximum allowed size, check whether it has one of the allowed file name extensions, check whether the destination directory exists and is writable before copying it.

The class can also create the thumbnails if the uploaded file is an image.

Picture of Abdelkader Elkalidi
Name: Abdelkader Elkalidi <contact>
Classes: 2 packages by
Country: Morocco Morocco
Age: ???
All time rank: 22595 in Morocco Morocco
Week rank: 1843 Up6 in Morocco Morocco Down

  Files folder image Files  
File Role Description
Files folder imageuploads (1 file)
Accessible without login Plain text file form.html Example From example
Plain text file SafelyUpload.php Class SafelyUpload class
Accessible without login Plain text file upload.php Example Code exemple

  Files folder image Files  /  uploads  
File Role Description
  Accessible without login Plain text file index.html Output none

 Version Control Unique User Downloads Download Rankings  
 0%Total:469All time:5,471
 This week:0This week:1,891Up