You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Wes Wannemacher (JIRA)" <ji...@apache.org> on 2009/06/09 17:05:43 UTC
[jira] Resolved: (WW-3115) Provide a way to inject file upload
listener for JakartaMultipartRequest
[ https://issues.apache.org/struts/browse/WW-3115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wes Wannemacher resolved WW-3115.
---------------------------------
Resolution: Won't Fix
Assignee: Wes Wannemacher
I'm marking this as 'Won't Fix,' but you should be able to do what you want with the plugin I just made. Try it out here and give me feedback -
http://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2-fileupload-plugin/
I had to make changes to struts2-core, so you'll have to try it against a recent snapshot build. Once we sort out the confluence issues, I should be able to release Struts 2.1.7, which will include the changes to support this plugin.
> Provide a way to inject file upload listener for JakartaMultipartRequest
> ------------------------------------------------------------------------
>
> Key: WW-3115
> URL: https://issues.apache.org/struts/browse/WW-3115
> Project: Struts 2
> Issue Type: Improvement
> Components: Core Interceptors
> Affects Versions: 2.1.6
> Environment: ALL
> Reporter: Dharshana
> Assignee: Wes Wannemacher
> Priority: Minor
> Fix For: 2.1.8
>
> Attachments: JakartaMultiPartRequest.java
>
>
> 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.