Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: Release 1.4.3, Release 1.5
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
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.
If you look at the javadoc for FileBean...
http://stripes.sourceforge.net/docs/current/javadoc/net/sourceforge/stripes/action/FileBean.html
You'll notice that getting the size, contenttype and a few other goodies are already available. And if you need a File representation you can just do something like..
File file = new File('someLocation');
fileBean.save(file);