I
I
INDIGO4222016-04-02 20:41:54
Java
INDIGO422, 2016-04-02 20:41:54

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

1 answer(s)
V
volyihin, 2016-04-24
@volyihin

Maybe this can help OPENSHIFT_DATA_DIR
3b7bd36a096e4355b56da20c6c698ae3.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question