Added a configurable upload size limit

Closes #1293
This commit is contained in:
Dan Brown 2019-03-08 21:06:37 +00:00
parent 9126c87f2b
commit 1c312906bc
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

View File

@ -16,6 +16,7 @@ function mounted() {
addRemoveLinks: true,
dictRemoveFile: trans('components.image_upload_remove'),
timeout: Number(window.uploadTimeout) || 60000,
maxFilesize: Number(window.uploadLimit) || 256,
url: function() {
return _this.uploadUrl;
},