[
http://www.stripesframework.org/jira/browse/STS-510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11250#action_11250
]
James Robert commented on STS-510:
----------------------------------
Gregg, your suggestion is what I do at the moment.
But, before I copy the temporary file anywhere, ideally, I would like to be
able to check that it is valid using the FileBean object. It would therefore
remain as a temporary file while I validate it, and if it is valid then I copy
it to a permanent location. This seems nice and clean and easy.
This goodies that are already available a great for this, but for some
validation, having the File object or the actual path to temporary file is
necessary.
Looking at the source, the File object is present as a property in the FileBean
already. Is there a reason that there is not a getter method for this already?
> 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