-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: Master
-
Fix Version/s: 7.0.0 DXP FP23, 7.0.4 CE GA5, 7.1.X, Master
-
Component/s: Documents & Media
-
Story Points:1
-
Fix Priority:3
-
Git Pull Request:
-
QA Test Name:
This logic is inside DLValidatorImpl.
long maxSize = PrefsPropsUtil.getLong(PropsKeys.DL_FILE_MAX_SIZE); if ((maxSize > 0) && (size > maxSize)) { throw new FileSizeException(fileName); }
But it is also seen in these three files:
modules/apps/collaboration/document-library/document-library-web/src/main/java/com/liferay/document/library/web/internal/upload/FileEntryDLUploadHandler.java modules/apps/social-private-messaging/social-private-messaging-web/src/main/java/com/liferay/social/privatemessaging/web/internal/portlet/PrivateMessagingPortlet.java modules/apps/web-experience/journal/journal-web/src/main/java/com/liferay/journal/web/internal/upload/ImageJournalUploadHandler.java
We can just replace their logic with a call to DLValidator.