No Code Attached Yet
avatar djeu007
djeu007
28 Oct 2021

Steps to reproduce the issue

Only applies if php.ini setting "memory limit" is set to -1 (no limit).
On a fresh Joomla 4, try to upload a 1Mo picture on media manager.

Expected result

Sucess (if others parameters such as upload max size are > 1 Mo, which is default)

Actual result

Fail : file is too large.

System information (as much as possible)

memory_limit = -1 on php.ini

Additional comments

On file administrator\components\com_media\src\Controller\ApiController.php line 370
test if file length > memory limit, which is always true if memory_limit is -1
We should ignore this test if memory limit is -1

avatar djeu007 djeu007 - open - 28 Oct 2021
avatar joomla-cms-bot joomla-cms-bot - change - 28 Oct 2021
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 28 Oct 2021
avatar Quy Quy - close - 28 Oct 2021
avatar Quy
Quy - comment - 28 Oct 2021

Closing as having a pull request. Please test #35854. Thanks in advance.

avatar Quy Quy - change - 28 Oct 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-10-28 14:38:25
Closed_By Quy

Add a Comment

Login with GitHub to post a comment