Delete (Dundas Upload Control 2.0)

Dundas

Delete (UploadedFile Object)

Call this method to delete uploaded files which have been saved to disk.

Syntax

UploadedFileObject.Delete

Remarks

An exception is thrown if the operation fails. Trap for success/failure by examining VBScript's Err object immediately after calling this method (the Number property of the Err object will be a non-zero value if it failed). MAKE SURE that you have enabled inline error trapping by using an On Error Resume Next statement at the beginning of the ASP page.

An exception will be thrown if you attempt to delete a file if the Files collection has been populated by calling SaveToMemory instead of the Save method.

See Also: Move | Copy | Save