Author: phuong_vu
Date: 2010-11-18 21:49:56 -0500 (Thu, 18 Nov 2010)
New Revision: 5165
Modified:
portal/branches/branch-GTNPORTAL-1643/component/web/server/src/main/java/org/exoplatform/upload/UploadService.java
Log:
GTNPORTAL-1671 IE7: name of uploaded file is its local path
Modified:
portal/branches/branch-GTNPORTAL-1643/component/web/server/src/main/java/org/exoplatform/upload/UploadService.java
===================================================================
---
portal/branches/branch-GTNPORTAL-1643/component/web/server/src/main/java/org/exoplatform/upload/UploadService.java 2010-11-19
02:15:56 UTC (rev 5164)
+++
portal/branches/branch-GTNPORTAL-1643/component/web/server/src/main/java/org/exoplatform/upload/UploadService.java 2010-11-19
02:49:56 UTC (rev 5165)
@@ -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
Show replies by date