Skip to content

Conversation

@richard67
Copy link
Member

@richard67 richard67 commented Mar 15, 2025

Pull Request for Issue # .

Summary of Changes

This pull request (PR) changes the package installer plugin ("System" -> "Install" -> "Extensions", tab "Upload Package File") to use the filesystem package from the framework instead of the deprecated CMS filesystem package to determine the maximum file upload size from php.ini settings "post_max_size" and "upload_max_filesize".

That's one of the 2 places where we currently use the deprecated package in the 5.3-dev branch and up.

I've decided to use an alias for the helper, use Joomla\Filesystem\Helper as FilesystemHelper, because it seems odd to me to use just Helper in the plugin code, which could readers may think that the helper belongs to that plugin.

If maintainers decide this to be an enhancement or new feature which comes too late for 5.3.0 and should not be made later with 5.3 patch versions, I will rebase this PR to 5.4-dev.

Testing Instructions

This PR requires the dependency update PR which was merged yesterday. See also #45071 (comment) .

In the administrator, go to "System" -> "Install" -> "Extensions", tab "Upload Package File", and note the "Maximum upload size" shown below the "Or browse for file" button is correct.

Apply the patch and go again to "System" -> "Install" -> "Extensions", tab "Upload Package File", or reload the page if still there.

Actual result BEFORE applying this Pull Request

"Maximum upload size" is shown below the "Or browse for file" button.

Expected result AFTER applying this Pull Request

"Maximum upload size" is shown below the "Or browse for file" button. The value is the same as without the PR.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

Don't use the deprecated CMS Filesystem but the framework package
@exlemor
Copy link

exlemor commented Mar 15, 2025

Hello Richard,

I am getting:

An error has occurred.
0 Call to undefined method Joomla\Filesystem\Helper::getFileUploadMaxSize()
Return to Dashboard

--- on 5.3 ßeta 2, on PHP 8.3.19, MariaDB 10.6.15

@richard67
Copy link
Member Author

You have to test the PR on a current 5.3-dev branch which includes the dependency update which was merged yesterday.

@richard67
Copy link
Member Author

P.S.: A nightly build from tonight should also work.

See also #45071 (comment) .

@exlemor
Copy link

exlemor commented Mar 16, 2025

I have tested this item ✅ successfully on 393104c

I was able to test this successfully!

Thx @richard67!


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

@richard67
Copy link
Member Author

@exlemor Thanks for testing.

@exlemor
Copy link

exlemor commented Mar 16, 2025

Thank you @richard67 for the help along the way ;)

@richard67
Copy link
Member Author

Well I simply had forgotten to mention it in the testing instructions. Is meanwhile added.

@alikon
Copy link
Contributor

alikon commented Mar 16, 2025

I have tested this item ✅ successfully on 393104c


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

@alikon
Copy link
Contributor

alikon commented Mar 16, 2025

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Mar 16, 2025
@laoneo laoneo merged commit be4da74 into joomla:5.3-dev Mar 21, 2025
3 checks passed
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Mar 21, 2025
@laoneo
Copy link
Member

laoneo commented Mar 21, 2025

Thanks!

@laoneo laoneo added this to the Joomla! 5.3.0 milestone Mar 21, 2025
@richard67 richard67 deleted the 5.3-dev-filesystem-cms-to-framework branch March 21, 2025 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants