Home > SYS_FileSystem > openReadFilePathDialog
SYS_FileSystem.openReadFilePathDialog() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
打开读取文件路径窗口
Signature
typescript
function openReadFilePathDialog(
filenameExtensions?: string | Array<string>,
multiFiles?: true,
): Promise<Array<string>>;1
2
3
4
2
3
4
Parameters
Parameter | Type | Description |
|---|---|---|
filenameExtensions | string | Array<string> | (Optional) 文件扩展名 |
multiFiles | true | (Optional) 是否允许读取多文件;受客户端协议限制,当前仅支持单选, |
Returns
Promise<Array<string>>
文件路径数组
Remarks
ADD since EDA v3.2.201 注意:本接口仅客户端有效,在浏览器环境内调用将始终 throw Error
/ EDA v4.1.54