Skip to content

BlockSuite API Documentation / @blocksuite/blocks / openFileOrFiles

Function: openFileOrFiles()

openFileOrFiles(options)

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

Parameters

options?

options.acceptType?: AcceptTypes

Returns

Promise<File | null>

Defined in

packages/affine/shared/dist/utils/file/filesys.d.ts:18

openFileOrFiles(options)

openFileOrFiles(options): Promise<File | null>

Parameters

options

options.acceptType?: AcceptTypes

options.multiple: false

Returns

Promise<File | null>

Defined in

packages/affine/shared/dist/utils/file/filesys.d.ts:21

openFileOrFiles(options)

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

Parameters

options

options.acceptType?: AcceptTypes

options.multiple: true

Returns

Promise<File[] | null>

Defined in

packages/affine/shared/dist/utils/file/filesys.d.ts:25