UseVirtualDir (Dundas Upload Control 2.0)

Dundas

UseVirtualDir (Dundas Upload Control 2.0)

Overview | Properties | Methods

A boolean property which determines if file save, copy or move operations should use physical or virtual directories/paths.

Syntax

UploadObject.UseVirtualDir = [boolean]

The UseVirtualDir property syntax has the following parts:

Part

Description

boolean

If this property is set to TRUE then you must specify a virtual directory if you are copying, moving or saving files to disk. If it is set to FALSE (the default) then you must specify a physical directory/path.

Remarks

If this property is TRUE then make sure that the virtual path specified in a Save method call begins with a forward slash. The first directory specified after the forward slash must be preceded with a forward slash, and any subsequent sub-directories (physical folders located beneath the virtual directory) are separated with forward slashes.

You will also have to specify virtual paths when calling any other methods which take a path argument (e.g. Move, Copy, etc.).

Use the following format for a relative path argument in a function call: objUpload.Save "/MyVirtualDir/ASubDirectory".

See Also: Save