DownloadTempFileclasswebui.t[3369]

Downloadable temporary file descriptor. We create this object when the program calls inputFile() to ask for a writable file. This lets the caller create and write a temporary file on the server side; when the caller is done with the file, we'll offer the file for download to the client through the UI.

class DownloadTempFile :   object

Superclass Tree   (in declaration order)

DownloadTempFile
        object

Subclass Tree  

(none)

Global Objects  

(none)

Summary of Properties  

isReady  isWebTempFile  mimeType  resName  resPath  tempFileName  timeCreated 

Summary of Methods  

closeFile  construct  getFilename 

Properties  

isReadywebui.t[3415]

is the file ready for download?

isWebTempFilewebui.t[3418]
this is a web temp file

mimeTypewebui.t[3409]
MIME type

resNamewebui.t[3405]
root resource name, and full resource path

resPathwebui.t[3406]
no description available

tempFileNamewebui.t[3402]
TemporaryFile object for the local temp file

timeCreatedwebui.t[3412]
creation timestamp, as a system tick count value

Methods  

closeFile ( )webui.t[3392]

no description available

construct (res, mimeType)webui.t[3370]
no description available

getFilename ( )webui.t[3391]
File spec interface. This allows the DownloadTempFile to be used as though it were a filename string.

When the object is passed to one of the File.open methods, or to saveGame(), setScriptFile(), etc., the system will call our getFilename() method to determine the actual underlying file. We'll return our temporary file object.

When the underlying file is closed, the system calls our closeFile() method to notify us.

Adv3Lite Library Reference Manual
Generated on 03/07/2024 from adv3Lite version 2.1