Saving file from post request using Flask only works locally
Openshift have data
and that directory can be used for persistent storage
| filesystem
You can get the directory using this environment variable OPENSHIFT_DATA_DIR
And please save your file over there...