Skip to content

413 Request Entity too Large for large file uploads #325

@saichand1996

Description

@saichand1996

hello,

I'm using webapp runner with docker for hosting a web application , for files less than 1mb, the upload of files are successful but when file size exceeds 1MB, server is throwing 413 request entity too large HTTP status, We are using mvn dependency of web app runner in to our applications pom file,
here is the docker file of our hosted app :

Docker multi-stage build

1. Building the App with Maven

FROM maven:3-jdk-11

ADD . /reportserver
WORKDIR /reportserver

Just echo so we can see, if everything is there :)

RUN ls -l

Run Maven build

RUN mvn clean install

2. Just using the build artifact and then removing the build-container

FROM openjdk:11-jdk

VOLUME /tmp

Add app.war to Container

COPY --from=0 "/reportserver/target/*.war" reportserver.war
COPY --from=0 "/reportserver/target/dependency/webapp-runner.jar" webapp-runner.jar

CMD java $JAVA_OPTIONS -jar webapp-runner.jar --port $PORT reportserver.war

can you please help us to configure the web app runner with respect to https://stackoverflow.com/questions/51390755/413-request-entity-too-large-apache-tomcat this tomcat thread for tomcat's 413 error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions