? ? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
19 Oct 2021

It is possible to set the memory limit in php to -1 which means unlimited memory.

Unfortunately this was not accounted for in the maths to check if a file could be uploaded.

To test you will need to change the value in your php.ini to memory_limit = -1 and restart the web server.

Then try to upload any file in the media manager and you will see an error message that the file is too large.

Apply this PR and the upload will be successful.

PR for #35853

avatar brianteeman brianteeman - open - 19 Oct 2021
avatar brianteeman brianteeman - change - 19 Oct 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 19 Oct 2021
Category Administration com_installer com_media
avatar rjharishabh
rjharishabh - comment - 25 Oct 2021

I have tested this item ✅ successfully on 43ccd32


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35854.

avatar rjharishabh rjharishabh - test_item - 25 Oct 2021 - Tested successfully
avatar brianteeman brianteeman - change - 26 Oct 2021
Labels Added: ?
avatar richard67 richard67 - test_item - 1 Nov 2021 - Tested successfully
avatar richard67
richard67 - comment - 1 Nov 2021

I have tested this item ✅ successfully on 6f34162


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35854.

avatar richard67
richard67 - comment - 1 Nov 2021

@rjharishabh Could you test again? Thanks in advance.

avatar rjharishabh rjharishabh - test_item - 1 Nov 2021 - Tested successfully
avatar rjharishabh
rjharishabh - comment - 1 Nov 2021

I have tested this item ✅ successfully on 6f34162


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35854.

avatar richard67 richard67 - change - 1 Nov 2021
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 1 Nov 2021

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35854.

avatar HLeithner
HLeithner - comment - 13 Nov 2021

Check upload, post and memory limit if set to unlimited

I tried visual code on github and completely failed... so I write it down here.

Benjamin is right your changes to $post_max_size and $upload_max_filesize is wrong, you have to check this 2 variables to be bigger then 0 (not -1).

also you have to add this check to the ApiController, because it's possible to set the upload size and post size to -1 or 0 (both unlimit)

avatar brianteeman brianteeman - change - 13 Nov 2021
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2021-11-13 21:27:40
Closed_By brianteeman
Labels Added: ?
avatar brianteeman brianteeman - close - 13 Nov 2021
avatar richard67
richard67 - comment - 13 Nov 2021

I’ve re-opened the issue.

Add a Comment

Login with GitHub to post a comment