Re: commons-fileupload2-jakarta

2023-07-17 Thread Martin Tzvetanov Grigorov



On 2023/07/15 14:04:54 Emmanuel Bourg wrote:
> On 12/07/2023 13:27, Martin Tzvetanov Grigorov wrote:
> 
> > Last time when I tried to replace Commons Fileupload with pure Servlet API 
> > I faced these issues:
> > 
> > 1) The Servlet API does not provide hooks to follow the upload progress
> 
> To display a progress bar on the client side?

Yes!

> 
> > 2) The Servlet API does not provide a way to cleanup after processing the 
> > uploaded files, i.e. the commons-fileupload Cleaner
> 
> Isn't the temp file cleaning automatically handled by the Servlet 
> container? The API user shouldn't have to care about that.

I don't remember the details why this is needed. 
Does the Servlet spec guarantee that or it is up to the container ?

> 
> Emmanuel Bourg
> 
> -
> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org
> 
> 

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



Re: commons-fileupload2-jakarta

2023-07-12 Thread Martin Tzvetanov Grigorov
Hi,

On 2023/07/09 14:45:21 Emmanuel Bourg wrote:
> Dumb question: what's the benefit of using commons-fileupload in 2023 
> instead of the equivalent file upload feature of the  Servlet API?

Last time when I tried to replace Commons Fileupload with pure Servlet API I 
faced these issues:

1) The Servlet API does not provide hooks to follow the upload progress

2) The Servlet API does not provide a way to cleanup after processing the 
uploaded files, i.e. the commons-fileupload Cleaner

This was 2016 (https://issues.apache.org/jira/browse/WICKET-5192) so things may 
have changed in the meantime! 

Regards,
Martin

> 
> The use case I had in mind was to support file upload in very old 
> Servlet containers still in production (Tomcat 6 or Jetty 7 for example, 
> both EOL), but servers supporting the Jakarta API are recent and have 
> the file upload feature integrated. I'd expect commons-fileupload to go 
> to dormant in the near future rather than adapted for the jakarta namespace.
> 
> What did I miss?
> 
> Emmanuel Bourg
> 
> -
> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org
> 
> 

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