Q:

OPenshift uploaded files

i have a problem. I uploaded some files and after some time they were deleted.Is it Ok becouse i use free version openshift and wildFly?
path to uploaded servletContext.getRealPath("/uploaded_images/")
the folder uploaded_images in src/main/webapp/uploaded_images

A:

It seems that you're not using the $OPENSHIFT_DATA_DIR for storing persistent data. Sotring uploaded files elsewhere means they will be deleted with the next code push (deployment), unless they are in the repository itself (which they should not be).
Check this article for more details about the data dir. Note that it can be used with non-scaling applications only.

