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>

Source

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

openFileOrFiles(options)

openFileOrFiles(options): Promise<File | null>

Parameters

options

options.acceptType?: AcceptTypes

options.multiple: false

Returns

Promise<File | null>

Source

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

openFileOrFiles(options)

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

Parameters

options

options.acceptType?: AcceptTypes

options.multiple: true

Returns

Promise<File[] | null>

Source

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