Lucee Function Reference
gettempfile()
Creates a unique temporary file with a prefix in a directory.
Example
gettempfile([string dir,string prefix,[string extension]]):string
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
| Name | Type | Required | Description |
|---|---|---|---|
| dir | string | No | Directory name, defaults to getTempDirectory() since 6.2.1.19 |
| prefix | string | Yes | Prefix of a temporary file to create in the dir directory |
| extension | string | No | File extension to use, default is .tmp |