observeDirectoryProgress: Enable progress tracking for directory uploads

View source: R/shiny-fancyFileInput.R

observeDirectoryProgressR Documentation

Enable progress tracking for directory uploads

Description

Helper function to set up progress tracking using progress2 for fancyDirectoryInput. Call this in your server function to enable automatic progress updates.

Usage

observeDirectoryProgress(inputId, session = shiny::getDefaultReactiveDomain())

Arguments

inputId

the input ID of the fancyDirectoryInput

session

the Shiny session object (default: shiny::getDefaultReactiveDomain())

Value

invisible NULL; sets up reactive observers for progress tracking

Examples

## Not run: 
server <- function(input, output, session) {
  # Enable progress tracking
  observeDirectoryProgress("dir_input")

  # Your other server logic...
}

## End(Not run)

dipsaus documentation built on Jan. 9, 2026, 5:11 p.m.