Skip to content
Advertisement

Ηow can I get the filename of a file uploaded with a shiny fileInput?

I have the shiny app below in which the user lands on the Upload data panel. I want the user not to be able to move to any of the other 2 tabpanels if he has not uploaded both files that are needed in the Upload data tab. The thing here is that I want both tabs to be activated only if the csv names are specific. For example the csv imported in first or second fileInput() should be named csvone and the csv imported in the first or second fileInput() should be named csvtwo. But both files should be uploaded regardless of which will be 1st.

JavaScript

Advertisement

Answer

just wrap the enable commands in an if/else statement like so

BTW: what you are (should be) asking essentially is “how can I get the filename of a file uploaded with a shiny fileInput?”

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement