[
http://www.stripesframework.org/jira/browse/STS-510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11252#action_11252
]
Tim Fennell commented on STS-510:
---------------------------------
There are a couple of reasons. By not ever publishing a reference to the File
object Stripes can be fairly certain that noone has snuck in and done something
to the file behind it's back. Therefore operations like save() and
getInputStream() etc. can all be sure that the file is there and untampered
with.
It also means that if at another date we choose to do something else, like use
something other than a File to hold the pointer to the data, all that is
encapsulated. If we let the File reference out, we're really saying that we'll
always support that and always use Files as the storage mechanism, where we
might chose to store files below a certain size in memory....
> 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