English
previewFile
About 66 wordsLess than 1 minute
2025-12-16
This method previews a file.
Syntax: FxUI.mediaApi.previewFile(file)
Parameters
| Parameter | Description | Type | Allowed Values | Default |
|---|---|---|---|---|
| file | File object | Object | — | — |
| file.filename | File name | String | — | — |
| file.path | File path | String | — | — |
| file.ext | File extension | String | — | — |
Example
This method does not return a value. Pass the file parameter containing the file path to preview.
let file = {
filename: "1.2.jpg",
path : "N_202210_27_362515560ff84c2b91e3962d2a285034",
ext: "jpg"
}
FxUI.mediaApi.previewFile(file)