Answer the question
In order to leave comments, you need to log in
How to organize file storage in a web project on OpenShift?
I am writing a web application in java. The WAR file is deployed under Tomcat or WildFly. OpenShift will be used as a hosting (server). The user should be able to upload the image to the server. In the database I will store the path to the file.
Question
In which directory to upload images? How to organize the storage of media files? How to get files with OpenShift
Data must be stored outside the project folder so that everything is not deleted during redeploy.
I tried accessing OpenShifta files and folders using the relative path ../../../data/files/2.png but nothing happened
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question