Inserting file-upload fields
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.
Contact your servers administrator to confirm that anonymous file uploads are allowed before using the file field.
To create a file field in a form:
- Insert a form in the page (Insert > Form).
- Select the form to display its Property inspector.
- Set the form Method to
- From the Enctype pop-up menu, select
- In the Action text box, specify the server-side script or page capable of handling the uploaded file.
- Place the insertion point inside the form outline and select Insert > Form > File Field.
A file field is inserted within the form.
- In the Property inspector, set the file field properties as desired.
For more information, see Setting file field properties.