Skip to content

API > @blocksuite/blocks > openFileOrFiles

Function: openFileOrFiles ​

openFileOrFiles(options?): Promise< File | null >

Parameters ​

ParameterType
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 ​

ParameterType
optionsobject
options.acceptType?AcceptTypes
options.multiplefalse

Returns ​

Promise< File | null >

Defined In ​

packages/blocks/src/_common/utils/filesys.ts:111

openFileOrFiles(options): Promise< File[] | null >

Parameters ​

ParameterType
optionsobject
options.acceptType?AcceptTypes
options.multipletrue

Returns ​

Promise< File[] | null >

Defined In ​

packages/blocks/src/_common/utils/filesys.ts:115