mirror of
https://github.com/friendica/friendica
synced 2025-04-27 12:30:11 +00:00
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
|
@ -240,6 +240,9 @@ class Compose extends BaseModule
|
|||
'deny_cid' => $contact_deny_list,
|
||||
'deny_gid' => $group_deny_list,
|
||||
]),
|
||||
|
||||
// Dropzone
|
||||
'$max_imagesize' => DI::config()->get('system', 'maximagesize')
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -182,6 +182,11 @@ class Edit extends BaseModule
|
|||
'$shortpermset' => $this->t('Permissions'),
|
||||
|
||||
'$compose_link_title' => $this->t('Open Compose page'),
|
||||
// Dropzone
|
||||
//'$max_imagesize' => DI::config()->get('system', 'maximagesize'),
|
||||
// DI::config.. does not work here, so it is set to a manual value
|
||||
'$max_imagesize' => 500000,
|
||||
|
||||
]);
|
||||
|
||||
return $output;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue