English
downloadImage
About 79 wordsLess than 1 minute
2025-12-16
This method downloads an image.
Syntax: FxUI.mediaApi.downloadImage(file)
Parameters
| Parameter | Description | Type | Allowed Values | Default |
|---|---|---|---|---|
| file | File object | Object | — | — |
| file.filename | File name | String | — | — |
| file.path | File path (Fxiaoke file URL or network URL) | String | — | — |
| file.ext | File extension | String | Optional when file.path is a network URL | — |
Example
This method does not return a value. Pass the file parameter containing the file path to download.
let file = {
filename: "1.2.jpg",
path : "N_202210_27_362515560ff84c2b91e3962d2a285034",
ext: "jpg"
}
FxUI.mediaApi.downloadImage(file)