Online Product Info
UploadDir Property

Description
The UploadDir property allows you to indicate where attachment files will be uploads while your form is being processed. When processing is complete, the attachment files will be deleted.

Default Value
You can specify a relative path such as "uploads". This tells Auto DB to upload files to a folder called "uploads" which is in the same directory/folder as your current form.

If the UploadDir is not specified, it will default to "C:\". You can also specify a physical path such as "C:\Inetpub\wwwroot\myweb\uploads"

Usage
See Listing A for an example of the UploadDir property in the Auto DB control tag.

<cc1:AutoDB id="AutoDB1" runat="server" CompressUploadedFiles="True"  CompressionLevel="High" UploadDir="Uploads"> </cc1:AutoDB> 
Listing A

Note: ASP.NET Auto DB will automatically detect file fields in your form and upload files. To allow file uploading, your form must have one or more file fields with the runat property set to "server" like so:

<INPUT type="file" id="firstFile" runat="server" NAME="firstFile">

In addition, your form tag must contain encType="multipart/form-data" as shown below:

<FORM name="frmLeadentry" encType="multipart/form-data" method="post" runat="server">

Related Properties

MaxFileSize

 

© copyright 2004 360 IMPACT. All rights reserved.