Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Use and display a file or image maxSize constraint if the value is lower than the server value #2759
Resolves the following issues
When a maxSize constraint is set for a file or image then the default argument text is still displayed as the server max filesize
Pull request description
Get the value of a maxSize constraint and compare it to the server max filesize setting from the php ini file. If the constraint is higher then the server value we use the server value otherwise we display and use the constraint value.