Author: andrei_exadel
Date: 2008-04-14 06:20:16 -0400 (Mon, 14 Apr 2008)
New Revision: 7792
Modified:
trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/FileUploadRendererBase.java
Log:
RF-3041
Modified:
trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/FileUploadRendererBase.java
===================================================================
---
trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/FileUploadRendererBase.java 2008-04-14
10:20:12 UTC (rev 7791)
+++
trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/FileUploadRendererBase.java 2008-04-14
10:20:16 UTC (rev 7792)
@@ -111,6 +111,7 @@
String fileName = multipartRequest.getFileName(clientId);
Object file = multipartRequest.getFile(clientId);
fileUpload.setLocalFileName(fileName);
+ fileUpload.setLocalContentType(multipartRequest.getFileContentType(clientId));
onUploadComplete(context, file, fileUpload);
}
@@ -338,7 +339,7 @@
Object file) {
ValueExpression data = fileUpload
.getValueExpression(_FILES_UPLOADED_ATTRIBUTE_NAME);
- UploadItem item = new UploadItem(fileUpload.getLocalFileName(),file);
+ UploadItem item = new UploadItem(fileUpload.getLocalFileName(),
fileUpload.getLocalContentType(), file);
if (data != null) {
if (data.getValue(context.getELContext()) instanceof Collection) {
Collection collection = (Collection) data.getValue(context
Show replies by date