GetAttributes (Dundas Upload Control 2.0)

Dundas

GetAttributes (UploadedFile Object)

Call this method to retrieve the attributes of an uploaded file which has been saved to disk.

Syntax

long = UploadedFileObject.GetAttributes()

Remarks

This method returns the file's attributes as a long.

Please note that calling this method will result in an exception being thrown if the file has been saved to memory using the SaveToMemory method.

The attributes argument can have any of the following values or any logical combination of the following values:

Value

Description.

0

No attributes are set.

1

Read-only file.

2

Hidden file.

4

System file.

8

Disk drive volume label.

16

Folder or directory. Attribute is read-only.

32

File has changed since last backup (archive). Attribute is read/write.

64

Link or shortcut. Attribute is read-only.

128

Compressed file. Attribute is read-only.

  Note: Calling this method will result in an exception being thrown if the file was saved to memory.

See Also: SetAttributes