I'm working with an existing shiny app designed to take in a csv file as input. I'd like to expand on the functionality of the app to let it take both csv files and xlsx files as input, however, I'm not clear on what values to use for fileInput's accept parameter. This is what is currently contained in the accept parameter:
accept = c('text/csv', 'text/comma-separated-values,text/plain', '.csv')
Firstly, I'm not clear on why all three values are needed, and would appreciate clarification on why each is there. Secondly, how can I let the app take in xlsx files correctly? I can get it to take in xlsx files like this:
accept = c('text/csv', 'text/comma-separated-values,text/plain', '.csv', 'xlsx')
However, since three strings were being used for csv files, I'm unsure if I will be missing functionality using only one string for xlsx files. Is there a better way to implement this?