Path (UploadedFile Object)

Dundas

Path (UploadedFile Object)

Overview

Read-only property which stores the uploaded file's local path at the server.

Syntax

[string] = Object.Path

The Path property syntax has the following parts:

Part

Description

string

The physical location of the uploaded file at the server.

Remarks

To use the Files collection (which stores UploadedFile objects) you must first call either the Save or SaveToMemory methods. If you use the SaveToMemory method then this property will be a zero-length string.

The Path property returns the physical path of the uploaded file at the server, even if the UseVirtualDir property has been set to TRUE.

This property is useful if you want to copy/move uploaded files using the filenames they were originally saved to disk with. For sample source code demonstrating this see the Copy topic.

See Also: OriginalPath