struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wes Wannemacher (JIRA)" <>
Subject [jira] Updated: (WW-3115) Provide a way to inject file upload listener for JakartaMultipartRequest
Date Tue, 02 Jun 2009 21:07:42 GMT


Wes Wannemacher updated WW-3115:

    Fix Version/s:     (was: 2.1.7)

I am going to bump this to 2.1.8. I am going to leave the existing JakartaMultiPartRequest
class and create a plugin for file uploads with a set of new classes and much more configurability.
There are a few options available and we aren't exposing much of anything. It should be pretty
easy for me to extract this into a plugin and release it pretty quick. Hopefully this way
you won't have to wait for 2.1.8 to get it. 

> Provide a way to inject file upload listener for JakartaMultipartRequest
> ------------------------------------------------------------------------
>                 Key: WW-3115
>                 URL:
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Core Interceptors
>    Affects Versions: 2.1.6
>         Environment: ALL
>            Reporter: Dharshana
>            Priority: Minor
>             Fix For: 2.1.8
>         Attachments:
> I'd like to have a way to have a configurable upload listener to be used by JakartaMultipartRequest
so any application can monitor the progress of a file upload without having to write own uploader
classes or using any plugins
> listener can be attached to the uploader on the following lines on per upload basis
>    88               ServletFileUpload upload = new ServletFileUpload(fac);
>    89               upload.setSizeMax(maxSize);
> e.g.
> String monitorKey  = request.getParameter("UPLOAD_MONITOR_KEY");
> if (monitorKey  != null){
>     //Create a progress listener using the configuration information, this is what I
need from this feature request
>     ProgressListener progressListener = createProgressListener();
>     upload.setProgressListener(progressListener );
>     request.getSession.putAttribute(monitorKey  ,progressListener );
>    //Now the application will be able to monitor the upload progress asynchronously
> }

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message