Add a file upload control to a form

In Page view, do one or both of the following:

Add a file upload control to a form and set its web folder properties

  1. Click in the form where you want to place the file upload control.

    If you are inserting a form field but have not already created a form, Microsoft FrontPage will automatically create a form area and insert the field inside that form. The form area will appear as a dashed line when you are editing the page.

    You can insert a new line by pressing ENTER.

  2. On the Insert menu, point to Form, and then click File Upload.
  3. Create a new folder in your web site.

    This is the location to which your site visitors will upload their files. If you do not create this new folder, your file upload control will not work.

    How?

    1. In the Folder list, right-click the web site, point to New, and then click Folder.

    2. To rename the folder, click the folder, right-click it, click Rename, and then type the new name.

  4. Right-click the new folder, and then click Properties on the shortcut menu.
  5. Cancel the selection of the Allow scripts to be run option.

    If you do not cancel the selection of this option, the following two options will be unavailable (dimmed).

  6. Select Allow anonymous upload to this directory.
  7. Select Allow uploaded files to overwrite existing file names if you want existing files to be overwritten.
  8. Click OK.
  9. Right-click the form, and click Form Properties on the shortcut menu.
  10. Click Options.
  11. Click the File Upload tab.
  12. Under Destination, browse to or type the name of the folder where you want the uploaded files to go, and click OK.

Set the properties of a file upload field

  1. Double-click the file upload text box.
  2. In the Name box, type a name to identify the file upload text box.

    This internal name, which is not shown on the form, identifies the check box in the form results. It will be visible to the site visitor on the default confirmation page, which is displayed when you use a form handler rather than a custom script.

  3. If you want text to appear in the text box when a site visitor first opens the form, type the text in the Initial value box.

  4. In the Width in characters box, type a number indicating how many characters wide you want the box to be.
  5. Click the Style button to access other options for formatting your form using cascading style sheets as an inline style.

Notes