mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
Fix incorrect reporting of maximum allowed filesize
This commit is contained in:
parent
61930d5129
commit
b8cd244836
2 changed files with 3 additions and 3 deletions
|
|
@ -344,7 +344,7 @@ class fileModel extends file
|
|||
}
|
||||
else
|
||||
{
|
||||
$allowed_filesize = min(FileHandler::returnBytes(ini_get('upload_max_filesize')), FileHandler::returnBytes(ini_get('post_max_size')));
|
||||
$allowed_filesize = min($file_config->allowed_filesize * 1024 * 1024, FileHandler::returnBytes(ini_get('upload_max_filesize')), FileHandler::returnBytes(ini_get('post_max_size')));
|
||||
}
|
||||
|
||||
// Display upload status
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue