How can I select a default file when uploading a file in R/Shiny?
This is the shiny app I try to modify.
As default, I want to see something like /tmp/test.csv instead of "No file selected".
Any ideas?
This is not possible due to security reasons.
See How to set a value to a file input in HTML?
Since your app will run in the user's browser, a possibility for you to preselect a local file path would mean you could steal the user's files (you could make the file upload button look like something else to bait the user and make them click it, or just trigger the upload programmatically). Therefore, it is not possible to preselect a file.