Author: hfnukal
Date: 2011-06-07 10:51:31 -0400 (Tue, 07 Jun 2011)
New Revision: 6605
Modified:
epp/portal/branches/EPP_5_1_Branch/component/web/server/src/main/java/org/exoplatform/upload/UploadService.java
Log:
JBEPP-957 Upload file limit not calculated correctly
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 2011-06-07
10:34:35 UTC (rev 6604)
+++
epp/portal/branches/EPP_5_1_Branch/component/web/server/src/main/java/org/exoplatform/upload/UploadService.java 2011-06-07
14:51:31 UTC (rev 6605)
@@ -259,7 +259,7 @@
limitMB = uploadLimitsMB_.get(upResource.getUploadId()).intValue();
}
- int estimatedSizeMB = (int)((contentLength / 1024) / 1024);
+ double estimatedSizeMB = (contentLength / 1024) / 1024;
if (limitMB > 0 && estimatedSizeMB > limitMB)
{ // a limit set to 0 means unlimited
if (log.isDebugEnabled())
Show replies by date