If you need to transfer the entire file to the server, you can create a file domain in the form to complete the task. To use a file field, the form must be set to post. The visitor can upload the file to the URL address that you specified in the form's action attribute.
First, insert a file field in the Dreamweaver
1. Insert the form in the document.
2. Select the method item as post in the form's Properties panel.
3. Select Multipart/form-data in the type of encoding Drop-down list.
4. Click on the mouse, positioning the cursor in the form frame line, click the "Insert" menu, select the "form" item, in the Pop-up submenu select "File Field" command.
Or select the form item in the Insert panel and click the File field icon, as shown in the following illustration:
Click on the "Window" menu and select "Insert" to open the Insert panel.
5. After clicking on the "File field" icon, the "Enter Tag Accessibility properties" dialog box pops up.
6. Click the OK button and the File field appears in the document. As shown in the following illustration:
7. Click on "File Fields" to open the file Fields property panel. As shown in the following illustration:
File Domain name: Enter a name for the file domain object.
Character width: Enter a numeric value. The Size property.
Maximum number of characters: Enter a numeric value. MaxLength property.
Second, tips
You can add multiple file fields by pressing the ENTER key by positioning the cursor in a box with a red dotted line around the form.