You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Pierre Maurice Schwang <ma...@pschwang.eu> on 2025/11/10 13:42:14 UTC

commons-fileupload multipart check

Hi,
I just ran into an issue with commons-fileupload while checking for a multipart request using ServletFileUpload.isMultipartContent (or the JakartaServletFileUpload equivalents). It seems like that method explicitly only allows POST requests, while my API needs to accept PUTs with multipart (which should be allowed). Is this a bug I can report (and potentially PR a fix) or somehow intended? I haven’t found any other reports so far. 

- Pierre

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: commons-fileupload multipart check

Posted by Jochen Wiedmann <jo...@gmail.com>.
Hi, Pierre,

in the age of REST API's, the restriction to POST makes no longer
sense. So, yes, this is basically a bug, or at least a very valid
feature request. Please, go ahead, and file a bug report.

Jochen

On Tue, Nov 11, 2025 at 10:55 AM Pierre Maurice Schwang
<ma...@pschwang.eu> wrote:
>
> Hi,
> I just ran into an issue with commons-fileupload while checking for a multipart request using ServletFileUpload.isMultipartContent (or the JakartaServletFileUpload equivalents). It seems like that method explicitly only allows POST requests, while my API needs to accept PUTs with multipart (which should be allowed). Is this a bug I can report (and potentially PR a fix) or somehow intended? I haven’t found any other reports so far.
>
> - Pierre
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>


-- 
The woman was born in a full-blown thunderstorm. She probably told it
to be quiet. It probably did. (Robert Jordan, Winter's heart)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org