Use max upload size from php config in frontend plupload js
This commit is contained in:
parent
0327a750ad
commit
c342aef031
3 changed files with 62 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue