DownloadTempFile class | webui.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

`isReady` | `webui.t[3415]`

is the file ready for download?

`isWebTempFile` | `webui.t[3418]`

this is a web temp file

`mimeType` | `webui.t[3409]`

MIME type

`resName` | `webui.t[3405]`

root resource name, and full resource path

`resPath` | `webui.t[3406]`

no description available

`tempFileName` | `webui.t[3402]`

TemporaryFile object for the local temp file

`timeCreated` | `webui.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.

TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3