API > @blocksuite/blocks > openFileOrFiles
Function: openFileOrFiles ​
openFileOrFiles(
options
?):Promise
<File
|null
>
Parameters ​
Parameter | Type |
---|---|
options ? | object |
options.acceptType ? | AcceptTypes |
Returns ​
Promise
< File
| null
>
Defined In ​
packages/blocks/src/_common/utils/filesys.ts:108
openFileOrFiles(
options
):Promise
<File
|null
>
Parameters ​
Parameter | Type |
---|---|
options | object |
options.acceptType ? | AcceptTypes |
options.multiple | false |
Returns ​
Promise
< File
| null
>
Defined In ​
packages/blocks/src/_common/utils/filesys.ts:111
openFileOrFiles(
options
):Promise
<File
[] |null
>
Parameters ​
Parameter | Type |
---|---|
options | object |
options.acceptType ? | AcceptTypes |
options.multiple | true |
Returns ​
Promise
< File
[] | null
>
Defined In ​
packages/blocks/src/_common/utils/filesys.ts:115