fileInput
fileInput(inputId, label, multiple = FALSE, accept = NULL)
Arguments
| inputId | Input variable to assign the control's value to. |
|---|---|
| label | Display label for the control. |
| multiple | Whether the user should be allowed to select and upload multiple files at once. |
| accept | A character vector of MIME types; gives the browser a hint of what kind of files the server is expecting. |
File Upload Control
Description
Create a file upload control that can be used to upload one or more files. Does not work on older browsers, including Internet Explorer 9 and earlier.
Details
Whenever a file upload completes, the corresponding input variable is set to a dataframe. This dataframe contains one row for each selected file, and the following columns:
name- The filename provided by the web browser. This is
not the path to read to get at the actual data that was uploaded
(see
datapathcolumn). size- The size of the uploaded data, in bytes.
type- The MIME type reported by the browser (for example,
text/plain), or empty string if the browser didn't know. datapath- The path to a temp file that contains the data that was uploaded. This file may be deleted if the user performs another upload operation.
See also
Other input.elements:actionButton;
animationOptions,
sliderInput;
checkboxGroupInput;
checkboxInput; dateInput;
dateRangeInput; numericInput;
radioButtons; selectInput,
selectizeInput; submitButton;
textInput