Author: thomas.heute(a)jboss.com
Date: 2010-12-15 12:09:32 -0500 (Wed, 15 Dec 2010)
New Revision: 5592
Modified:
epp/portal/branches/EPP_5_1_Branch/component/web/server/src/main/java/org/exoplatform/upload/UploadService.java
Log:
JBEPP-733: UploadService doesn't work with IE7
Modified:
epp/portal/branches/EPP_5_1_Branch/component/web/server/src/main/java/org/exoplatform/upload/UploadService.java
===================================================================
---
epp/portal/branches/EPP_5_1_Branch/component/web/server/src/main/java/org/exoplatform/upload/UploadService.java 2010-12-15
13:03:18 UTC (rev 5591)
+++
epp/portal/branches/EPP_5_1_Branch/component/web/server/src/main/java/org/exoplatform/upload/UploadService.java 2010-12-15
17:09:32 UTC (rev 5592)
@@ -104,6 +104,9 @@
DiskFileItem fileItem = (DiskFileItem)itemList.get(0);
String fileName = fileItem.getName();
+ if (fileName == null)
+ fileName = uploadId;
+ fileName = fileName.substring(fileName.lastIndexOf('\\') + 1);
String storeLocation = uploadLocation_ + "/" + uploadId + "." +
fileName;
// commons-fileupload will store the temp file with name *.tmp