You can create a file-upload field that lets users select a file on their computer--such as a word processing document or graphics file--and upload the file to the server. A file field looks like other text fields except it also contains a Browse button. The user either manually enters the path to the file they want to upload, or uses the Browse button to locate and select the file.
Before you can use file-upload fields, you need a server-side script or a page capable of handling file submissions. Consult the documentation of the server technology you use to process form data. For example, if you use PHP, see "Handling files uploads" in the PHP Manual at http://us2.php.net/manual/en/features.file-upload.php.
File fields require that you use the POST
method to transmit files from the browser to the server. The file is posted to the address you specify in the forms Action text box.
NOTE |
|
Contact your servers administrator to confirm that anonymous file uploads are allowed before using the file field. |
POST
.
multipart/form-data.
A file field is inserted within the form.
For more information, see Setting file field properties.