Alternative to fileInput in Shiny

rmarkdown
shiny

#1

Hello!

I know that the usual way to upload files in a shiny app is using fileInput, but this need the interaction of the user that has to choose the file to be uploaded. I'm looking for an alternative way, for example, having a textInput with the path of the file and from there use fread to import my files.

Any idea?

Thanks!!


#2

You could use a pair of buttons. One button calls the choose.dir function allowing you to select the directory, the second activates fread. However, this will only work on a Windows system.