[
http://www.stripesframework.org/jira/browse/STS-510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11253#action_11253
]
James Robert commented on STS-510:
----------------------------------
Gregg, Tim, thanks for your quick responses. I figured there must be some
reason...
The use case that having the File available would help with is as follows:
1.Validate the uploaded file by examining contents of the file.
2.If valid, then copy it to overwrite an existing file on the server.
At moment step one involves creating a second temporary file for validation
before overwriting the old file. So I have to write the file an extra time and
clean up both the FileBean and the other temporary file in my finally block.
I don't know whether making this use case easier outweighs the reasons you give
above for keeping the File object private.... So please close this issue if
you like. PS. Stripes is indeed awesome-tastic, cheers!
> Add a getFile() method to FileBean
> ----------------------------------
>
> Key: STS-510
> URL: http://www.stripesframework.org/jira/browse/STS-510
> Project: Stripes
> Issue Type: Improvement
> Affects Versions: Release 1.4.3, Release 1.5
> Reporter: James Robert
> Priority: Minor
>
> It would be great if there were a "public File getFile()" method in the
> net.sourceforge.stripes.action.FileBean object. This would be useful for some
> validations (for example checking the type of image uploaded) that require
> the file or at least the full path to the file.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development