mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +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
|
|
@ -92,7 +92,7 @@ class FileController extends File
|
|||
{
|
||||
if (isset($_SESSION['upload_info'][$editor_sequence]->allowed_filesize))
|
||||
{
|
||||
$allowed_attach_size = $allowed_filesize = ($_SESSION['upload_info'][$editor_sequence]->allowed_filesize * 1024 * 1024);
|
||||
$allowed_attach_size = $allowed_filesize = $_SESSION['upload_info'][$editor_sequence]->allowed_filesize;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -922,7 +922,7 @@ class FileController extends File
|
|||
$file_size = filesize($file_info['tmp_name']);
|
||||
if (isset($_SESSION['upload_info'][$editor_sequence]->allowed_filesize))
|
||||
{
|
||||
$allowed_attach_size = $allowed_filesize = ($_SESSION['upload_info'][$editor_sequence]->allowed_filesize * 1024 * 1024);
|
||||
$allowed_attach_size = $allowed_filesize = $_SESSION['upload_info'][$editor_sequence]->allowed_filesize;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue