mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Use raw bytes, not MB, when setting allowed filesize in session
This commit is contained in:
parent
7a659737cc
commit
426027509c
5 changed files with 10 additions and 10 deletions
|
|
@ -280,7 +280,7 @@ class CommunicationView extends communication
|
|||
$option->primary_key_name = 'temp_srl';
|
||||
$option->content_key_name = 'content';
|
||||
$option->allow_fileupload = $this->config->enable_attachment === 'Y';
|
||||
$option->allowed_filesize = $this->config->attachment_size_limit ?? 0;
|
||||
$option->allowed_filesize = ($this->config->attachment_size_limit ?? 0) * 1024;
|
||||
$option->enable_autosave = FALSE;
|
||||
$option->enable_default_component = TRUE; // FALSE;
|
||||
$option->enable_component = FALSE;
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@
|
|||
<div class="x_control-group">
|
||||
<label for="allowed_attach_size" class="x_control-label">{lang('communication.attachment_size_limit')}</label>
|
||||
<div class="x_controls">
|
||||
<input type="number" min="0" name="attachment_size_limit" id="attachment_size_limit" value="{$config->attachment_size_limit ?? ''}" /> MB
|
||||
<input type="number" min="0" name="attachment_size_limit" id="attachment_size_limit" value="{$config->attachment_size_limit ?? ''}" /> KB
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue