BlockSuite API Documentation / @blocksuite/blocks / openFileOrFiles
Function: openFileOrFiles()
Call Signature
openFileOrFiles(
options
?):Promise
<File
|null
>
Parameters
options?
acceptType
AcceptTypes
Returns
Promise
<File
| null
>
Defined in
packages/affine/shared/dist/utils/file/filesys.d.ts:18
Call Signature
openFileOrFiles(
options
):Promise
<File
|null
>
Parameters
options
acceptType
AcceptTypes
multiple
false
Returns
Promise
<File
| null
>
Defined in
packages/affine/shared/dist/utils/file/filesys.d.ts:21
Call Signature
openFileOrFiles(
options
):Promise
<File
[] |null
>
Parameters
options
acceptType
AcceptTypes
multiple
true
Returns
Promise
<File
[] | null
>
Defined in
packages/affine/shared/dist/utils/file/filesys.d.ts:25