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

...

Additional named arguments passed as HTML attributes to the parent element or tag elements passed as child elements to the parent element.

id

A character string specifying the id of the reactive input.

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.

Details

Getting started

File inputs come with default placeholder text.

fileInput(
  id = NULL
)

You can also specify different text.

fileInput(
  id = NULL,
  placeholder = "Pick a file",
  browse = "Click"
)

See Also

Other inputs: buttonGroupInput(), buttonInput(), checkbarInput(), checkboxInput(), chipInput(), formInput(), listGroupInput(), menuInput(), navInput(), radioInput(), radiobarInput(), rangeInput(), selectInput(), textInput()


nteetor/yonder documentation built on June 8, 2022, 1:36 p.m.