What is the best way to handle temporary files for a given user’s session when there are multiple users using the app at the same time?
For instance if I have a user that wants to classify an image they upload, how and where should it be stored? I’m currently using a
/tmp/ directory, but it is cleared upon app load. But if I have multiple users visiting the app at the same time, then one user’s
tmp might be cleared by another user’s app load.
Am I misunderstanding anything? Am I handing this functionality in a completely wrong way? Any help is appreciated