So legen Sie die maximale Größe der Upload-Datei fest
Ich entwickle eine auf Spring Boot und AngularJS basierende Anwendung mit JHipster. Meine Frage ist, wie man @ setmax Größe des Uploads von Dateien?
Wenn ich versuche, in eine große Datei hochzuladen, erhalte ich die folgenden Informationen in der Konsole:
DEBUG 11768 --- [io-8080-exec-10] c.a.app.aop.logging.LoggingAspect:
Enter: com.anuglarspring.app.web.rest.errors.ExceptionTranslator.processRuntimeException() with argument[s] =
[org.springframework.web.multipart.MultipartException: Could not parse multipart servlet request; nested exception is java.lang.IllegalStateException:
org.apache.tomcat.util.http.fileupload.FileUploadBase$FileSizeLimitExceededException: The field file exceeds its maximum permitted size of 1048576 bytes.]
Und Serverantwort mit Status 500.
Wie man das einstellt?