mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 00:32:15 +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
|
|
@ -121,8 +121,8 @@ class FileModel extends File
|
|||
{
|
||||
if (isset($_SESSION['upload_info'][$editor_sequence]->allowed_filesize))
|
||||
{
|
||||
$this->add('allowed_filesize', FileHandler::filesize($_SESSION['upload_info'][$editor_sequence]->allowed_filesize * 1024 * 1024));
|
||||
$this->add('allowed_attach_size', FileHandler::filesize($_SESSION['upload_info'][$editor_sequence]->allowed_filesize * 1024 * 1024));
|
||||
$this->add('allowed_filesize', FileHandler::filesize($_SESSION['upload_info'][$editor_sequence]->allowed_filesize));
|
||||
$this->add('allowed_attach_size', FileHandler::filesize($_SESSION['upload_info'][$editor_sequence]->allowed_filesize));
|
||||
}
|
||||
if (isset($_SESSION['upload_info'][$editor_sequence]->allowed_extensions))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue