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 -

ios - Subclassing UIView and adding a property -

Powerbuilder 12.1 and DataWindow in Design vs Debug and Executable/Runtime -