[ 
https://issues.apache.org/struts/browse/WW-2580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43591#action_43591
 ] 

James Mitchell commented on WW-2580:
------------------------------------

Jelmer, are you already doing this in your app?  How did you implement it?

I see 2 ways to do this, but you have not provided a patch for either.

I'd be happy to commit your patch and associated test case when you upload 
them.  However, keeping "nice to have" jira issues/features hanging around with 
an "open" status is not my idea of progress.

Please submit a patch or a hint at how you would do it so this issue can be 
resolved.

Thanks.


> Add filename argument to acceptFile method in FileUploadInterceptor
> -------------------------------------------------------------------
>
>                 Key: WW-2580
>                 URL: https://issues.apache.org/struts/browse/WW-2580
>             Project: Struts 2
>          Issue Type: New Feature
>    Affects Versions: 2.0.11.1
>            Reporter: Jelmer Kuperus
>
> It would be quite usefull to extend the acceptFile  method in 
> FileUploadInterceptor with an additional argument that passes in the original 
> filename. This allows you to filter uploads based on its extension / name and 
> not merely on the content type. 

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

Reply via email to