rstudio - How to restrict Shiny fileInput to text files only? -
i want restrict file browser displaying types of file specify, e.g. .txt files only. relevant snippets of code found following:
fileinput("in_file", "input file:", accept=c("txt/csv", "text/comma-separated-values,text/plain", ".csv")
however, does't filter files showing in browser .txt , .csv. ideas?
as far understand, that's right way it. if view app in rstudio viewer wouldn't anything, in browser should. i'm using chrome , ran code , did in fact show me txt , csv files.
of course user can still choose view other files going little select box , choosing view files, have consciously choose that. default csv , txt files shown
Comments
Post a Comment