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

[ticket/16076] addFileFilter to check max file size per mime type #5664

Merged
merged 2 commits into from Sep 22, 2019
Merged

[ticket/16076] addFileFilter to check max file size per mime type #5664

merged 2 commits into from Sep 22, 2019

Conversation

ghost
Copy link

@ghost ghost commented Aug 25, 2019

PHPBB3-16076

Checklist:

  • Correct branch: master for new features; 3.3.x & 3.2.x for fixes
  • Tests pass
  • Code follows coding guidelines: master, 3.3.x and 3.2.x
  • Commit follows commit message format

Tracker ticket (set the ticket ID to your ticket ID):

https://tracker.phpbb.com/browse/PHPBB3-16076

@EA117
Copy link
Contributor

EA117 commented Aug 28, 2019

What will be the intended relationship between the per-Attachment Extension Group "Maximum file size" and the main ACP Attachment Settings "Maximum File Size"?

If the per-group value is set to zero, does this mean "I want to be limited by whatever the main ACP Attachment Settings maximum file size is set to"? Or is setting a per-group value to zero an assertion that "even though other downloads may be limited, this particular Attachment Extension Group needs to be unlimited"?

The proposed change hasn't stopped passing "max_file_size: '{FILESIZE}b'" in the plupload config, so I'm just trying to picture what the actual effect, interaction and intention will be.

@ghost
Copy link
Author

ghost commented Aug 29, 2019

All files are limited to the general "maximum file size".
Per group you can lower the maximum file size.

The general one, is the 'overall' rule for attachment filesize, each and every attachment has to adhere to. Otherwise you will start working 'exceptions' and then you lose track rather quickly.

This also simply means, setting a group's maximum filesize to 0, that a group does not specific maximum filesize, other than the overall one.

The provides a linear way of thinking / managing:
"overall" is the absolute limit and you can lower them per group.

@marc1706 marc1706 added this to the 3.2.9 milestone Sep 9, 2019
marc1706 added a commit to marc1706/phpbb that referenced this pull request Sep 22, 2019
[ticket/16076] addFileFilter to check max file size per mime type
@marc1706 marc1706 merged commit c9284e1 into phpbb:3.2.x Sep 22, 2019
@ghost ghost deleted the ticket/16076 branch September 22, 2019 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants