There are already similar posts on this matter (ex. how can I update a shiny fileInput object?), but I still cannot figure out how one may force Shiny to forget a value of
I know this is an old post, but you can reset the input by rebuilding it from scratch in the server.
In ui.R you can put:
...
uiOutput('file1_ui') ## instead of fileInput('file1', label = NULL)
...
And in server.R add this:
...
output$file1_ui <- renderUI({
input$reset ## Create a dependency with the reset button
fileInput('file1', label = NULL)
})
...