spring-framework icon indicating copy to clipboard operation
spring-framework copied to clipboard

Re-instate support for Commons File Upload

Open mdeinum opened this issue 5 months ago • 3 comments

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

mdeinum avatar Jun 12 '25 10:06 mdeinum

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?

bclozel avatar Jun 12 '25 23:06 bclozel

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.

mdeinum avatar Jun 16 '25 07:06 mdeinum