Author: theute
Date: 2011-05-25 10:13:43 -0400 (Wed, 25 May 2011)
New Revision: 6562
Modified:
epp/portal/branches/EPP_5_1_RH_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_RH_Branch/component/web/server/src/main/java/org/exoplatform/upload/UploadService.java
===================================================================
---
epp/portal/branches/EPP_5_1_RH_Branch/component/web/server/src/main/java/org/exoplatform/upload/UploadService.java 2011-05-25
13:22:33 UTC (rev 6561)
+++
epp/portal/branches/EPP_5_1_RH_Branch/component/web/server/src/main/java/org/exoplatform/upload/UploadService.java 2011-05-25
14:13:43 UTC (rev 6562)
@@ -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