[
https://issues.apache.org/jira/browse/WW-3924?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13534837#comment-13534837
]
Link Qian commented on WW-3924:
-------------------------------
Not exactly. Struts1, Struts2 file upload framework limits Action to use
java.io.File to reference a uploading multipart content from http request
because FileUploadIntercetor and MultiPartResolver only expose File type to
others class needs. It's hard to extend and low performance fact which discuss
more thread more time. Thus, it's necessary refactor the old file upload
processing framework. meanwhile, we need to protect user's program work in new
struts release including the refactor code as well. So the Ng (new generation)
file upload process framework is not constraint, instead of an alternative for
experimental framework aim to easy extension and high performance usage. It is
easy to switch and is off in default. As Lukasz said, it's a big change with a
bit change core code.
The patch provides a solution that easy to write plugin, whatever commons-fu,
fastupload and others. what use commons-fu API implements NgMultiPartResolver
and wrap MultiPart is easy.
also I would like to say sorry for the codestyle issue. include license,
comments etc.
> refactor file upload framework
> ------------------------------
>
> Key: WW-3924
> URL: https://issues.apache.org/jira/browse/WW-3924
> Project: Struts 2
> Issue Type: Improvement
> Components: "New" API, Integration
> Affects Versions: 2.3.7
> Environment: HTTP, RFC 1867, form-based upload.
> Reporter: Link Qian
> Labels: features, patch
> Fix For: 2.3.9
>
> Attachments: fileupload-patch.txt
>
> Original Estimate: 504h
> Remaining Estimate: 504h
>
> refactor current file upload framework in Struts2, the goals are:
> 1, compatible with current file upload API in Struts2.
> 2, enable file upload framework to integration with form-based upload
> components easily.
> 3, enable user to use stream/memory parsing model beyond temporary file
> parsing model.
> 4, testing
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira