Upload Plus - File Upload Manager
Requirements
Configuration
Installation
Directing the notification (to and from email fields)
Directing the files
Requiring Fields
Requirements
All you need is any executable folder ( cgi-bin ).
Configuration
Upload Plus requires you to configure the script before uploading to your server. You can re-configure, re-upload and overwrite the script as often as you like. Open the script in a text editor and follow the instruction in the file. User configuration ends at line 90. For more information, please see our FAQ. If you find your question is not addressed, please submit a question.
Installation
Open the script in a text editor and make sure the first line points to Perl (Scripts being used on a WINDOWS server do not need the path to Perl)
Upload the script to any executable folder (cgi-bin) and CHMOD to 755 (Scripts being used on a WINDOWS server do not need to be CHMODed)
Upload the demo HTML file to any public folder.
In your web browser, type in the URL that points to the HTML file and load the page.
Problems
If you are having problems, in your web browser, type in the URL that points to the upload.cgi file and load the page. For example:
http://www.yourserver.com/cgi-bin/upload.cgi
You should now see an error message and on the second line a HTML form tag. This is the exact form tag that should be in your HTML file. Copy and paste it to your HTML and try to upload again. If you continue to receive errors, the errors returned will describe what is going wrong.
Directing files
Upload Plus allows your visitors to direct the files to a folder of their choice. You simply add a Select menu to your form. You must ensure that each folder in the select menu has it's permission's set to full read write access (777). An example select menu would look like :
You should only enter a relative path in the option value. That is, on line 46 of the script, you enter the path to the main upload folder. In the form, you enter the path to the sub directories. For example if you wanted your users to upload to the following three folders, and the absolute path is :
/htdocs/path/to/user/images
in the script you would enter
/htdocs/path/to/user
and in the form you would enter
<select name="destination">
<option value="images">Images
<option value="docs">Documents
<option value="archs">Archives
</select>
Directing notifications
As of Version 3.5 you can set Upload Plus to allow Users to select or enter the email address of the recipient of the email notification. This is achieved by using a Form field named "toemail" in your Form. For example to allow the User to type in the recipient's email address you'd use :
<input type="Text" name="toemail" value="">
Be sure to set the $allow_dynamic_recip variable to 1 if using this feature.
You can also use radio buttons or a single selection drop down select menu. The sender's email address is read from a field named "email" which must be in lower case. E.g.
<input type="Text" name="email" value="">
Requiring Fields
Upload Plus searches for a field named "email" in lowercase, in your form and if found treats that as the Sender's e-mail address.
You can also require any number of fields by setting the value of a hidden form field named "required". Each field required should be separated by a comma and should not contain any spaces unless the field name itself contains spaces. E.g.
<input type="Hidden" name="required" value="name,email,age,message">
All field names are case sensitive.
|