1
0
Fork 0

take maxFilesize from systemsettings

* does not work everywhere...
This commit is contained in:
Jakobus Schürz 2023-03-13 13:47:09 +01:00
commit be2afac60d
8 changed files with 40 additions and 8 deletions

View file

@ -97,9 +97,11 @@
</div>
<script>
Dropzone.autoDiscover = false;
console.log('compose.tpl', {{$max_imagesize}} / 100000);
var maxis = {{$max_imagesize}} / 100000;
var dropzoneCompose = new Dropzone( '#comment-edit-form-{{$id}}', {
paramName: "userfile", // The name that will be used to transfer the file
maxFilesize: 6, // MB - change this to use systemsettings
maxFilesize: maxis, // MB
previewsContainer: '#dz-previewsCompose',
preventDuplicates: true,
clickable: true,