You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We simply need to remove the comment and 3 lines that set the size from that method.
If you review SilverStripe\Assets\Upload_Validator and check the getAllowedMaxFileSize method, you'll see the sizing will be populated (if it hasn't been done before).
@nfauchelle thanks for reporting and the reproduction steps.
With PRs, generally, you'd fork the framework repo, fix the issue in a new branch off the latest minor version branch, i.e. 4.8 at this point in time, and then you can submit a cross-repo PR against that minor version branch from your fix branch.
Affected Version
4.8
Description
yml config for the max size of uploads is getting over-written by a single '*' rule which is done in.
We simply need to remove the comment and 3 lines that set the size from that method.
If you review SilverStripe\Assets\Upload_Validator and check the getAllowedMaxFileSize method, you'll see the sizing will be populated (if it hasn't been done before).
yml config expected to work.
Steps to Reproduce
When you define max sizing in the yml file, it gets over-ridden with the CMS UploadField.
Here is the change here, nfauchelle@564ecbc
I don't have permission to submit a pull request.
PRs
The text was updated successfully, but these errors were encountered: