Scriptabulous!

Back

PHP Fileupload Class

fileupload-class.php extends PHP's built in file upload features, allowing users to easily and safely upload files to a web server using their browser. REQUIRES PHP 5+ Features:* Handles single or multiple files* Specify maximum filesize* Specify acceptable file MIME type(s)* Specify unacceptable file extension(s)* If the upload is an image, specify maximum pixel dimensions* Filenames are automatically cleaned up* Moves the uploaded file to a specified directory* Handles duplicate file names, with three different modes: [1] overwrite existing files; [2] rename the new file; [3] protect, do-nothing mode* Error messages in English, French, German, Dutch, Italian, Finnish, Spanish, Norwegian, Danish, and Swedish.

Download this script