Author: andrei_exadel
Date: 2008-04-14 06:20:12 -0400 (Mon, 14 Apr 2008)
New Revision: 7791
Modified:
trunk/framework/api/src/main/java/org/richfaces/model/UploadItem.java
Log:
RF-3041
Modified: trunk/framework/api/src/main/java/org/richfaces/model/UploadItem.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/model/UploadItem.java 2008-04-14
09:35:17 UTC (rev 7790)
+++ trunk/framework/api/src/main/java/org/richfaces/model/UploadItem.java 2008-04-14
10:20:12 UTC (rev 7791)
@@ -21,6 +21,9 @@
/** Users file name */
private String fileName;
+ /** Content type */
+ private String contentType;
+
/** java.io.File instance */
private File file;
@@ -30,8 +33,9 @@
/**
* Constructor for the UploadItem
*/
- public UploadItem(String fileName, Object file) {
+ public UploadItem(String fileName, String contentType, Object file) {
this.fileName = fileName;
+ this.contentType = contentType;
if (null != file) {
if (file.getClass().isAssignableFrom(File.class)) {
this.file = (File) file;
@@ -78,4 +82,13 @@
public String getFileName() {
return fileName;
}
+
+ /**
+ * @return the contentType
+ */
+ public String getContentType() {
+ return contentType;
+ }
+
+
}
Show replies by date