Use max upload size from php config in frontend plupload js

This commit is contained in:
Lucas Bickel 2017-12-26 12:46:17 +01:00
parent 0327a750ad
commit c342aef031
3 changed files with 62 additions and 1 deletions

View file

@ -20,7 +20,7 @@ $(document).ready(function () {
acceptedFiles: acceptedMimeTypes.join(),
addRemoveLinks: true,
dictRemoveFile: $.i18n._("Remove"),
maxFilesize: 500, //Megabytes
maxFilesize:LIBRETIME_PLUPLOAD_MAX_FILE_SIZE, //Megabytes
init: function () {
this.on("sending", function (file, xhr, data) {
data.append("csrf_token", $("#csrf").val());