[
https://issues.apache.org/jira/browse/WW-3562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Maurizio Cucchiara resolved WW-3562.
------------------------------------
Resolution: Fixed
Fix Version/s: 2.3
> FileUploadInterceptor: File not uploaded when file is empty (0 bytes)
> ---------------------------------------------------------------------
>
> Key: WW-3562
> URL: https://issues.apache.org/jira/browse/WW-3562
> Project: Struts 2
> Issue Type: Bug
> Components: Core Interceptors
> Affects Versions: 2.2.1.1
> Environment: Windows 7 64-bit or Windows XP with either Tomcat or
> Jetty Web Container
> Reporter: Burton Rhodes
> Assignee: Maurizio Cucchiara
> Priority: Minor
> Fix For: 2.3
>
> Attachments: StrutsUploadTest.zip
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> When a user uploads a file that is emtpy (0 bytes), the actual file is not
> copied to the web container's "work" directory. All other information about
> the file is copied though (e.g. contentType, fileName). Although the file is
> emtpy file.exist() should still equal "true". I have attached a demo app
> that demostrates the issue. IMO, an empty file should be treated just like a
> non-empty file.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira