Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Max upload size plugin option can exceed the value to be set inside it more than max_upload_size php.ini settings #829

Merged
merged 3 commits into from
Feb 22, 2024

Conversation

mebishalnapit
Copy link
Collaborator

This PR includes:

  • Fixes the Max upload size plugin option value to not exceed the value set in max_upload_size php.ini configuration file

Add - Introduce a filter before modifying the plugin options data before it is ready to be saved
Add - Filter the max_upload_size options data to not add the option for it greater than max_upload_size php derivative
Tweak - Set maximum upload size string modify to enter value in bytes
Copy link
Member

@rahularyan rahularyan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mebishalnapit We have to do this without a hook. As this is a core logic and hence we don't want to do this using a hook.

@mebishalnapit
Copy link
Collaborator Author

@rahularyan Modified without using filter hook.

@rahularyan rahularyan merged commit c3b1185 into master Feb 22, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants