Author: andrei_exadel
Date: 2008-08-19 05:25:11 -0400 (Tue, 19 Aug 2008)
New Revision: 10134
Modified:
trunk/framework/impl/src/main/java/org/ajax4jsf/request/MultipartRequest.java
Log:
refactoring
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/request/MultipartRequest.java
===================================================================
---
trunk/framework/impl/src/main/java/org/ajax4jsf/request/MultipartRequest.java 2008-08-19
08:51:28 UTC (rev 10133)
+++
trunk/framework/impl/src/main/java/org/ajax4jsf/request/MultipartRequest.java 2008-08-19
09:25:11 UTC (rev 10134)
@@ -24,9 +24,7 @@
import javax.servlet.http.HttpServletRequestWrapper;
import org.ajax4jsf.Filter;
-import org.ajax4jsf.context.AjaxContext;
import org.ajax4jsf.exception.FileUploadException;
-import org.ajax4jsf.webapp.BaseFilter;
import org.ajax4jsf.webapp.BaseXMLFilter;
import org.richfaces.model.UploadItem;
@@ -712,7 +710,7 @@
public List<UploadItem> getUploadItems () {
List <UploadItem> uploadItems = new ArrayList<UploadItem>();
for (String k : keys) {
- uploadItems.add(new UploadItem(getFileName(k), getFileContentType(k), getFile(k)));
+ uploadItems.add(new UploadItem(getFileName(k), getFileSize(k), getFileContentType(k),
getFile(k)));
}
return uploadItems;
}
Show replies by date