I'm working on a spring project and I want to store images that users upload.
From what I understood/read, it's not possible to write in to WAR
files as they are read-only. Therefore it's not possible to create a new file in the Resources
folder of this web app when it's deployed on the server as a WAR
file.
If this is true, where should the app write these files to ? considering the fact that directory hieracrchy for different machines (i.e. the servers which this web app is going to be deployed to) are different.
I'm confused, what is the best approach here ?