I'm curious to understand a little more about how Shiny handles file uploads. I'm working on an app that parses some log files from a course management system to help teachers understand more about student interactions in an online learning environment. Because this involves student data, I want to make sure I consider privacy concerns, and understand what happens to files if a teacher decides to upload their student log data file into a hosted Shiny app.
Currently, all I've been able to learn from the tutorials and package documentation is that fileInput lets you upload data that is stored as "a temp file" and that "this file may be deleted if the user performs another upload operation".
- What happens to files when they're uploaded? What directory do they end up in on the server?
- When a user uploads a different file during the same session, does it always overwrite the previous file? Or is it just a possibility that the previous file will get deleted from the temp directory?
- It sounds like the file handling is somehow session-based. When a user closes their browser after uploading and manipulating a file in a Shiny app, what happens to the file on the server? It doesn't look like the file persists from session to session; when I close out my browser and re-open the Shiny App, it always seems to start fresh with no file. But is there a possibility that a teacher could upload a log file, close out of their browser, and somehow still have that uploaded file re-appear in a new session on their own or another person's computer?
I'm considering this might actually be better as a non-hosted "pass the code along and run it locally" kind of app, but I'd still love to hear more about file uploads in Shiny!
Alison