View source: R/fileUploadModule.R
uploadFileUI | R Documentation |
uploadFile UI part of uploadFle shiny module
uploadFileUI(id, label = "Select file", multiple = TRUE)
id |
module id name |
label |
label for shiny fileInput button |
multiple |
default TRUE allows upload of multiple files depending on filetype argument in server |
dataframe of files fed to server fileCopy
#app to upload files into cwd/temp
if(!dir.exists("temp")){dir.create("temp")}
ui <- fluidPage(
uploadFileUI(id = "myID",
label = "Select files",
multiple = T)
)
server <- function(input, output) {
uploadFileServer(id = "myID",
saveToPath = "./temp",
filetype ="geog")
}
shiny::shinyApp(ui = ui, server = server)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.