Skip to content

frontend / features/Project/projectFile / pickProjectFile

Function: pickProjectFile() ​

pickProjectFile(): Promise<File | null>

Defined in: features/Project/projectFile.ts:46

Opens system file picker and returns selected file, or null if user cancelled.

Uses hidden input element which is created and removed on the fly. Accept attribute is set to .chef, but this is only a hint — user can switch to "All files" in dialog and choose any file. In this case error will be raised later during parsing.

Returns ​

Promise<File | null>

Promise which resolves with selected file or null.