phpUpload 1.01

Requirements: Web server with PHP 4.0+ and ample storage space for the files to be uploaded


This easy to use script allows visitors to your website to upload files to a specific folder on your web server. There are several variables that need to be changed.

  1. In the upload.php file edit the line that contains the path to your upload folder. The script will not work unless by some strange chance your sever path is /path/to/your/uploads/folder/
  2. Edit the remaining lines that are commented. These include the message you want to see in the notification email, the subject of the email, and MOST IMPORTANTLY, the email address you want to receive the notification.
  3. In the upload_form.php file edit the file size limit value to restrict the file size to a manageable size. The default is set at 10MB (10485760 KB). If you need help converting MB to KB, use this link. You can also edit the note at the bottom of the file with your own custom message for your visitors.

There are two additional files, a validation message page that occurs if the user does not include all the required fields, and a completed page that is shown upon a successful upload. These should both be edited to match your site, or used as an include in an existing page.

After a visitor completes a successful upload the script will send email to the address in the script. The email notification will include date and time of upload, filename, filesize, and the IP address of the visitor who uploaded the file.

If you have any problems, you can always go to my support forum and I'll be more than glad to help you, provided you clearly state what error(s) you have received, other problems you may be having, and a link to your page. As always if you use this script email me and let me know where you used it - I'm always interested in seeing how the code is being used.

phpUpload © 2004 BlueNite Productions
Author: Curt Granger
Version: 1.01


Last revised: 2004-02-12
This script validates as HTML 4.01 Transitional

Valid HTML 4.01!