Home Search

DriveWorks Pro 22
Default File Name

Send Feedback

Default File Name

The file name and path to use for the next uploaded file. If a file extension is omitted it will be taken from the uploaded file.

It is possible to use prefixes such as <Project> see Prefixes for more information.

This Control property can be found in the Upload Form Control.

Property Type: Dynamic

Default Value: No default value is applied to this property

Hierarchical Reference: ControlNameDefault

To Change the Default Value

The default value of the property can be changed by any of the following methods:

  • Enter the required value directly into the enabled property field.
    1. Click in the property for the control to be changed.
    2. Type the required value directly into the property field.
  • Activate the rule builder.
    1. Click in the property for the control to be changed.
    2. Click the build button at the end of the property field to launch the rule builder .
    3. Enter the rule in the rule editor and click OK to apply.

Examples

Default File Name Property ValueResultNotes
"\\DriveWorks\ProjectName\Images\" & UploadControlWill upload a file to the specified location and use the original file name e.g. \\DriveWorks\ProjectName\Images\OriginalName.jpgNote the ControlName (UploadControl) and not UploadControlReturn is used.
"\\DriveWorks\ProjectName\Images\" & DWVariableImageName & FsGetExtension(UploadControl) Will upload a file to the specified location and give it a new file name e.g. \\DriveWorks\ProjectName\Images\NewName.png
"\\DriveWorks\ProjectName\Images\" & DWVariableCurrentUser & "\" & DWVariableImageName & FsGetExtension(UploadControl)Will upload a file to the specified location, based on the CurrentUser name and give the file a new name e.g.\\DriveWorks\ProjectName\Images\JohnSmith\NewName.png
"\\DriveWorks\ProjectName\Images\" & DWVariableCurrentUser & "\" & DWVariableImageName &"\" &DWProjectName & FsGetExtension(UploadControl)Will upload a file to the specified location, based on the CurrentUser, name, Project name and give the file a new name e.g.\\DriveWorks\ProjectName\Images\JohnSmith\NewName\ProjectName.png
"<Project>\Images\"& DWVariableImageName & FsGetExtension(UploadControl)Will upload the file to the location of the Project in a subfolder named Images.

Value can be controlled by a rule.