|
What you would use this for: To allow visitors to upload files to your site via a web based form.
What you need:
An FTP client (Transmit - external link)
A text editor (TextWrangler - external link)
1. Click here to download the upload.zip file.
2. If the upload.zip file doesn't expand automatically, double click the upload.zip file. This should force the compressed upload.zip to expand into a folder titled "upload". We'll refer to this folder as the upload folder from now on.
3. For security reasons, we are going to make this folder password protected once it's live on your site. Please do not make the username and password you select available to the general public. Now, on to instruction 3:
In TextWrangler, open the files named htaccess and htpasswd.
4. In the "htaccess and htpasswd generation form" below, use the following settings:
Path: /Library/WebServer/WebSites/YourUsername/public_html/Upload
(replace "YourUsername" with your ftp username the you use for your site. The rest of the path should be typed in exactly as above.)
Username: Put the username you would like to use to protect this directory
Password: Put the password you would like to use to protect this directory
Click the "Generate" button.
htaccess and htpasswd generation form:
|