English
getFileUrlFromNpath
About 93 wordsLess than 1 minute
2025-04-28
This method converts a Fxiaoke nPath into a loadable file URL.
FxUI.util.getFileUrlFromNpath(Npaths: Array<string>)Parameters
| Parameter | Description | Type | Optional Values | Default |
|---|---|---|---|---|
| Npaths | List of file Npaths | Array<string> | — | [] |
Return Value
| Parameter | Description | Type | Optional Values | Default |
|---|---|---|---|---|
| data | Returned file list data | Array<object> | — | [] |
Description of each object item inside Array<object>
| Parameter | Description | Type | Optional Values | Default |
|---|---|---|---|---|
| url | File URL | string | — | '' |
Code Example
This method returns a Promise object, as shown below:
FxUI.util.getFileUrlFromNpath(['N_xxxxxxxx']).then((res) => {
// The structure of res is [{url: xxx}]
})