#15280·tutorials

[ISSUE] Use servlet.multipart.enable and commons-fileupload2-jakarta

Author: tgkprogCreated Nov 23, 2023Updated Dec 5, 2023
Labelstriagedon-jira

Article and Module Links https://www.baeldung.com/spring-apache-file-upload https://github.com/eugenp/tutorials/tree/master/spring-web-modules/spring-rest-simple

Describe the Issue In newer spring boot the property to tell boot not to handle file uploads itself is servlet.multipart.enabled and not spring.http.multipart.enabled

Also be good to update the article with new apache file up that has jakarta imports instead of javax i.e. org.apache.commons commons-fileupload2-jakarta

Also see https://stackoverflow.com/a/51924188/1643558

How about a manually run a html jaavscript integration test that uploads a text file of randomly created characters of 3GB with fixed first line and last line to allow for validation?