Skip to content

Commit

Permalink
Update ApiController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
brianteeman committed Oct 26, 2021
1 parent 43ccd32 commit 6f34162
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ private function checkContent()
if (($params->get('upload_maxsize', 0) > 0 && $serverlength > ($params->get('upload_maxsize', 0) * 1024 * 1024))
|| $serverlength > $helper->toBytes(ini_get('upload_max_filesize'))
|| $serverlength > $helper->toBytes(ini_get('post_max_size'))
|| $serverlength > $helper->toBytes(ini_get('memory_limit')) && $helper->toBytes(ini_get('memory_limit')) != -1)
|| ($serverlength > $helper->toBytes(ini_get('memory_limit')) && $helper->toBytes(ini_get('memory_limit')) != -1))
{
throw new \Exception(Text::_('COM_MEDIA_ERROR_WARNFILETOOLARGE'), 403);
}
Expand Down

0 comments on commit 6f34162

Please sign in to comment.