Overview
The Apache Commons FileUpload project has been working on putting out Commons FileUpload2 which is compatible with JakartaEE APIs.
Maybe it is worth to re-instate the support for Commons File Upload (if they can release a final version in time).
Related Issues:
-
27423
Comment From: bclozel
Hey Marten,
We've deprecated then removed this variant in favor of the StandardServletMultipartResolver, backed by the Servlet container. Is there any particular reason to bring this back? Any feature that the standard Servlet support is missing?
Comment From: mdeinum
Well the only one I can think of is using streaming file uploads but that bypasses the MultipartResolver already so for that it isn't really needed. It is not so much that I need it personally but I do see questions on StackOverflow if support is still there or will be re-added.
As I knew it was dropped as there wasn't a JakartaEE version of Apache File Upload when Spring 6 started developing so support had to be dropped. As there now is a JakartaEE version I thought (in light of the community questions) to re-instate it.
Another option I suspect would be to have the Apache File Upload team provide the Spring implementation.
Comment From: ghillert
The one use case besides streaming file uploads I can think of is if you need or want to monitor upload progress on the server side. Apache Commons FileUpload provides the ProgressListener interface for such purposes.
There are a few breaking changes in Apache Commons FileUpload 2, but migration is doable. I have a roughly migrated version running locally and it works fine in a Spring Boot 4 app. Therefore, if there is interest, I should be able to provide a PR on fairly short notice.
Not sure when the final 2.0 release is supposed to happen. The latest release from June is commons-fileupload-2.0.0-M4. The projects seems to be relatively active as of late.