take maxFilesize from systemsettings
* does not work everywhere...
This commit is contained in:
parent
359ad6ff5a
commit
be2afac60d
8 changed files with 40 additions and 8 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue