tomcat - OpenShift: upload file to server -


This uses OpenShift WebApp, Tomcat 7 and Savelt.
Upload file from servlet:

  string upload file path = System.getenv ("OPENSHIFT_DATA_DIR") + "upload /";  

/ var / lib / openshift / 53d4da604382ecdd4f000005 / app-root / data / upload /

How to find this file on the server?

But the response is: The requested resource is not available.

Your OPENSHIFT_DATA_DIR is not publicly available by default Upload files to OpenShift using files Try viewing this forum post talking about / viewing:


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -