The NPE comes from the wrong response format, I have to use
"/upload.html" to define HTML as output format.
My upload class is now:
public class UploadController extends ERXRouteController {
private static final int HTTP_BAD_REQUEST = 400;
private static final String EXPECTED_MIME_TYPE = "applic
Hm, this results in a NullPointerException on response() and
errorResponse(). Is it mandatory to have an EO name within the route?
André
On 13.03.2018 15:58, André Rothe wrote:
> Maybe I can add a route in the Application class:
>
> routeRequestHandler.addRoute(new ERXRoute(null, "/upload",
> ER
Maybe I can add a route in the Application class:
routeRequestHandler.addRoute(new ERXRoute(null, "/upload",
ERXRoute.Method.Post, UploadController.class, "uploadFile"));
And then I could implement a controller class UploadController:
public class UploadController extends ERXRouteController {