? ? Pending

User tests: Successful: Unsuccessful:

avatar HLeithner
HLeithner
13 Nov 2021

Pull Request for Issue #35853

Summary of Changes

check if upload, post and memory limit is set to unlimited before checking required minimum limits

Testing Instructions

Install extensions
Upload file in media manger.
if possible with different values set in for upload_max_filesize, post_max_size, memory_limit in php.ini

Actual result BEFORE applying this Pull Request

doesn't work if any of the 3 vars is <= 0

Expected result AFTER applying this Pull Request

works

avatar HLeithner HLeithner - open - 13 Nov 2021
avatar HLeithner HLeithner - change - 13 Nov 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 13 Nov 2021
Category Administration com_installer com_media
avatar HLeithner HLeithner - change - 13 Nov 2021
Labels Added: ?
avatar PhilETaylor
PhilETaylor - comment - 14 Nov 2021

Ive said it before. Repeatedly. memory_limit doesn't effect uploading of files! Basic PHP.

#35360 (comment)
#35392 (comment)

avatar HLeithner
HLeithner - comment - 14 Nov 2021

Ive said it before. Repeatedly. memory_limit doesn't effect uploading of files! Basic PHP.

I would say the same but there are 2 "problems"

#35360 (comment)

First it's mentioned in the documentation https://php.itronic.at/manual/en/ini.core.php#ini.post-max-size

Generally speaking, memory_limit should be larger than post_max_size.

#35392 (comment)

If you look at the mediamanager then you will see that it loads the images as base64 encoded string...

sure both things doesn't effect the upload directly but is a failsafe for later usage. Does you see a negative impact?

avatar Fedik
Fedik - comment - 2 Jan 2022

I have tested this item successfully on ab4610a


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

avatar Fedik Fedik - test_item - 2 Jan 2022 - Tested successfully
avatar PhilETaylor
PhilETaylor - comment - 2 Jan 2022

I have tested this item successfully on ab4610a


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

avatar PhilETaylor PhilETaylor - test_item - 2 Jan 2022 - Tested successfully
avatar Fedik Fedik - change - 2 Jan 2022
Status Pending Ready to Commit
avatar Fedik
Fedik - comment - 2 Jan 2022

R2C


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

avatar wilsonge wilsonge - change - 4 Jan 2022
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-01-04 00:37:59
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 4 Jan 2022
avatar wilsonge wilsonge - merge - 4 Jan 2022
avatar wilsonge
wilsonge - comment - 4 Jan 2022

Thanks!

Add a Comment

Login with GitHub to post a comment