Le lun. 17 juil. 2023 à 08:19, Martin Tzvetanov Grigorov < mgrigo...@apache.org> a écrit :
> > > 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! > AFAIK it is mainly about the input stream reading *per item* and not globally so you get it in any API wrapping InputStream and using Part metadata. Yes the wrapper is not built-in but it is common in several libs and quite trivial to do inline too so not really missing. > > > > > > 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 ? > It does and even exposes the Part#delete() method to force it force cases you want to "optimize". > > > > > 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 > >