Author: andrei_exadel
Date: 2008-03-10 06:07:43 -0400 (Mon, 10 Mar 2008)
New Revision: 6638
Modified:
trunk/framework/api/src/main/java/org/richfaces/model/UploadItem.java
Log:
RF-2397
Modified: trunk/framework/api/src/main/java/org/richfaces/model/UploadItem.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/model/UploadItem.java 2008-03-10
09:20:41 UTC (rev 6637)
+++ trunk/framework/api/src/main/java/org/richfaces/model/UploadItem.java 2008-03-10
10:07:43 UTC (rev 6638)
@@ -32,10 +32,10 @@
this.fileName = fileName;
if (null != file) {
if (file.getClass().isAssignableFrom(File.class)) {
- this.file = (File)file;
+ this.file = (File) file;
+ } else if (file.getClass().isAssignableFrom(byte[].class)) {
+ this.bytes = (byte[]) file;
}
- }else if (file.getClass().isAssignableFrom(byte[].class)) {
- this.bytes = (byte [])file;
}
}
Show replies by date