Creates a br-upload file field. input$<inputId> works
like a standard Shiny file input (a data frame of uploaded files). The
GovBR JavaScript displays the list of selected files.
Examples
if (interactive()) {
ui <- shiny::fluidPage(
use_govbr(),
shinyGovBRstyle::br_layout(
shinyGovBRstyle::br_upload(
inputId = "arquivo",
label = "Envio de arquivo"
),
shiny::verbatimTextOutput("valor")
)
)
server <- function(input, output, session) {
output$valor <- shiny::renderPrint(input$arquivo$name)
}
shinyApp(ui = ui, server = server)
}
