selectFile: Select a file

Description Usage Arguments Value

View source: R/file_select.R

Description

Server logic that reacts to user input such as updating the current selected file path. This function must be called within a Shiny server function

Usage

1
2
3
selectFile(id, fileLocation = c(C_FILE_LOCATION_LOCAL,
  C_FILE_LOCATION_SERVER, C_FILE_LOCATION_BOTH),
  serverRootDirectories = NULL)

Arguments

id

The same ID as used in the matching call to fileSelectWidget

fileLocation

a parameter indicates where you want ther users to navigate the files.

serverRootDirectories

the root directories that your app users are allowed to navigate and it must be a named vector.

Value

the selected file path as a reactive value


keqiang/shinywidgets documentation built on March 3, 2020, 11:56 p.m.