UploadFolder - cWebApp
Determines the path to the default upload folder
Type: Function
Return Data Type: String
Parameters
| Parameter | Type | Description |
|---|---|---|
| bCreate | Boolean | If True is passed, the folder will be created |
Syntax
Function UploadFolder Boolean bCreate Returns String
Call Example
Get UploadFolder bCreate to StringVariable
Description
Returns the full file path of the standard Upload folder of the current workspace. Normally this would be "\Uploads" where is the full path to the workspace's Data (psDataPath) folder.
Note if the bCreate parameter is True and the upload folder does not currently exist then the function will attempt to create that directory. If it is unable to create the directory then an Error is raised and the Function will return "".