FileName (NextFile Object)

Dundas

FileName (NextFile Object)

Overview

Read-write property which determines the uploaded file's full pathname (at the server).

Syntax

NextFileObject.FileName = [string]

The Path property syntax has the following parts:

Part

Description

string

The full pathname of the uploaded file (at the server).

Remarks

If files are to be saved with uniques filenames (the default) then the value of this property will be: GUID_OriginalFileName. If uniques filenames are not being used then this property will just consist of the original filename (i.e. the filename at the client).

If you would like to allow the upload of the file to occur and you want to specify the name the file is to be saved with then set this property BEFORE calling the Save method (SaveToMemory is not relevant here).

Important: if you specify the filename which the file is to be saved under then it is your responsibility to make sure that the name is unique (if unique filenames are desired). Use the GetUniqueName method of the Upload control to help you accomplish this.

See Also: GetUniqueName