META-INF.resources.message_boards.edit_message_attachment.jspf Maven / Gradle / Ivy
<%--
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
--%>
<%
int deletedAttachmentsFileEntriesCount = 0;
if (message != null) {
deletedAttachmentsFileEntriesCount = message.getDeletedAttachmentsFileEntriesCount();
}
%>
var uploader = new Liferay.Upload({
boundingBox: '# fileUpload',
<%
DecimalFormatSymbols decimalFormatSymbols = DecimalFormatSymbols.getInstance(locale);
%>
decimalSeparator: '<%= decimalFormatSymbols.getDecimalSeparator() %>',
deleteFile:
' ',
fallback: '# fallback',
fileDescription:
'<%= StringUtil.merge(dlConfiguration.fileExtensions()) %>',
maxFileSize:
'<%= DLValidatorUtil.getMaxAllowableSize(themeDisplay.getScopeGroupId(), null) %> ',
namespace: ' ',
rootElement: '# uploaderContainer',
tempFileURL: {
method: Liferay.Service.bind('/mb.mbmessage/get-temp-attachment-names'),
params: {
groupId: <%= scopeGroupId %>,
folderName: '<%= MBMessageConstants.TEMP_FOLDER_NAME %>',
},
},
tempRandomSuffix: '<%= TempFileEntryUtil.TEMP_RANDOM_SUFFIX %>',
uploadFile:
' ',
});
© 2015 - 2025 Weber Informatics LLC | Privacy Policy