Skip to main content
Module

x/astral/mod.ts>FileChooser

A high-level puppeteer/playwright-like library for Deno
Go to Latest
class FileChooser
Re-export
import { FileChooser } from "https://deno.land/x/astral@0.3.3/mod.ts";

Dialog provides an api for managing a page's dialog events.

Constructors

new
FileChooser(celestial: Celestial, config: Required<Page_fileChooserOpened>)

Properties

readonly
multiple: boolean

Whether this file chooser accepts multiple files.

Methods

setFiles(files: string[])

Sets the value of the file input this chooser is associated with. If some of the filePaths are relative paths, then they are resolved relative to the current working directory. For empty array, clears the selected files.