SAAS-1098: Max filesize restricted by new uploader
This commit is contained in:
parent
eb5fcec485
commit
f25457d1eb
|
@ -20,6 +20,7 @@ $(document).ready(function () {
|
||||||
acceptedFiles: acceptedMimeTypes.join(),
|
acceptedFiles: acceptedMimeTypes.join(),
|
||||||
addRemoveLinks: true,
|
addRemoveLinks: true,
|
||||||
dictRemoveFile: $.i18n._("Remove"),
|
dictRemoveFile: $.i18n._("Remove"),
|
||||||
|
maxFilesize: 500, //Megabytes
|
||||||
init: function () {
|
init: function () {
|
||||||
this.on("sending", function (file, xhr, data) {
|
this.on("sending", function (file, xhr, data) {
|
||||||
data.append("csrf_token", $("#csrf").val());
|
data.append("csrf_token", $("#csrf").val());
|
||||||
|
|
Loading…
Reference in New Issue