Xbasic

INET::UploadedFile Class

Description

Methods and properties for a file that has been uploaded to the server. Files can be uploaded using Action Javascript or a form POST submit action.

Properties

NameCharacter

This object's variable name. E.g. FileToUpload

FileNameCharacter

The filename of the uploaded file. Includes the filename and extension. FileName does not include the file path.

ContentTypeCharacter

The file content type.

CharacterSetCharacter

The file character set.

EncodingCharacter

The file encoding.

DataBinary

The data in the uploaded file. Data is loaded into system memory when requested.

SizeNumeric

The size of the file. Check this value before accessing the Data property to prevent issues caused by loading very large files into memory.

CallResultCallResult

A CallResult object that contains information about the result of the file upload to the server. If an error occurred during file upload, additional information can be found in this property.

Methods

SaveToFile Method

Save the data to the storage member requested

SaveToStorage Method

Save the uploaded file directly to Storage. This method saves the file from disk directly to the Storage using buffered reads and writes.

SetErrorLogFile Method

Internal Use Only.

See Also