Elements

bl upload

Set files on an input[type=file] element

Set files on an input[type=file] element

Usage

bl upload <selector> <files> [OPTIONS]

Arguments

ArgumentDescription
&lt;selector&gt;CSS selector (or map ref) for the input[type=file] element
&lt;files&gt;One or more file paths to set on the input

Options

OptionDescription
--headlessHide browser window (visible by default)
--jsonOutput as JSON
--session <value>Run this command in the named session (env: BL_SESSION; default: "default")

Global options

OptionDescription
-v, --verboseEnable debug logging

Examples

bl upload "input[type=file]" ./photo.jpg
# Upload a single file

bl upload "#file-input" ./photo.jpg ./doc.pdf
# Upload multiple files

On this page