PHP Classes

Classe Upload: Validate and handle uploaded files

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 45%Total: 537 All time: 5,610 This week: 488Up
Version License PHP version Categories
classe_upload 1.0GNU General Publi...4.0Files and Folders
Description 

Author

This class can be used to validate and handle files uploaded via Web forms. It can check:

- If the file does not exceed a given size limit
- If the file name has one of the accepted extensions
- If there is a file with the same name in the target directory

If the uploaded file verifies the validation rules, the class moves the file to a given directory.

The class may also return the URL for a link to download the uploaded files.

The code and the comments are in Italian.

In Italian:

Classe Upload è una classe con semplici funzioni da usare per uppare i file.

Contiene le funzioni di: sovrascrivi rinomina File, estensioni consentite, dimensioni massime, restituzione link al file uppato.

Picture of StefanoV89
Name: StefanoV89 <contact>
Classes: 6 packages by
Country: Italy Italy

  Files folder image Files (3)  
File Role Description
Files folder imagelibs (1 file)
Accessible without login HTML file esempio.html Data Esempio in HTML
Accessible without login Plain text file esempio.php Example Pagina a cui Punta il Form HTML

  Files folder image Files (3)  /  libs  
File Role Description
  Plain text file upload.class.inc.php Class La Classe Vera e Propria

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:537
This week:0
All time:5,610
This week:488Up
 User Ratings  
 
 All time
Utility:66%StarStarStarStar
Consistency:66%StarStarStarStar
Documentation:-
Examples:58%StarStarStar
Tests:-
Videos:-
Overall:45%StarStarStar
Rank:3304