]> BookStack Code Mirror - bookstack/commit
Added an env configurable file upload size limit
authorDan Brown <redacted>
Sun, 14 Nov 2021 22:03:22 +0000 (22:03 +0000)
committerDan Brown <redacted>
Sun, 14 Nov 2021 22:03:22 +0000 (22:03 +0000)
commit85154fff693c80374bc048ca9497df663bd5e32d
tree622362b18a140d0b625bb5385d13e723ff217cd5
parentf910738a80f918e1fdcf9f1ae4e63bce4287bd83
Added an env configurable file upload size limit

Replaces the old suggestion of setting JS head 'window.uploadLimit'
variable. This new env option will be used by back-end validation and
front-end libs/logic too.

Limits already likely exist within prod environments at a PHP and
webserver level but this allows an app-level limit and centralises the
option on the BookStack side into the .env

Closes #3033
.env.example.complete
app/Config/app.php
app/Entities/Tools/PageContent.php
app/Http/Controllers/Api/ApiController.php
app/Http/Controllers/Api/AttachmentApiController.php
app/Http/Controllers/AttachmentController.php
app/Http/Controllers/Controller.php
app/Uploads/AttachmentService.php
resources/js/components/dropzone.js
resources/views/form/dropzone.blade.php