fileInput: File inputs

View source: R/input-file.R

fileInputR Documentation

File inputs

Description

Upload files to the server.

Usage

fileInput(
  id,
  ...,
  placeholder = "Choose file",
  browse = "Browse",
  multiple = TRUE,
  accept = NULL
)

Arguments

id

A character string. The id of the reactive input.

...

Optional named arguments specifying HTML attributes for the input element.

placeholder

A character string specifying the text inside the file input, defaults to "Choose file".

browse

A character string specifying the label of file input, defaults to "Browse".

multiple

One of TRUE or FALSE specifying whether or not the user can upload multiple files at once, defaults to TRUE.

accept

A character vector of possible MIME types or file extensions, defaults to NULL, in which case any file type may be selected.

See Also

Other inputs: input_button(), input_checkbox(), input_checkbox_group(), input_chip(), input_form(), input_list_group(), input_menu(), input_radio_group(), radiobarInput(), rangeInput(), selectInput(), textInput()


nteetor/dull documentation built on July 4, 2025, 8:52 a.m.