Metin Galimidi
Member
Hello,
I am using Xenforo 1.3
When I set Maximum large avatar file size (bytes): 51200 and upload an avatar image much bigger than that I don't get an error message.
Prerequisites:
Set the Maximum large avatar file size (bytes) for a user group as 51200
Steps to reproduce:
Expected result : User should get an error saying that the file uploaded is too large.
Notes: I took a quick peek at Xenforo/Model/Avatar.php and it looks like the comparison is being done against the final output rather than the size of the actual image that is being uploaded. Is this intended please?
Thanks in advance
I am using Xenforo 1.3
When I set Maximum large avatar file size (bytes): 51200 and upload an avatar image much bigger than that I don't get an error message.
Prerequisites:
Set the Maximum large avatar file size (bytes) for a user group as 51200
Steps to reproduce:
- Go to the site
- Login
- Go to manage account settings
- View the copy next to the avatar upload
- Upload an image larger than 51200 bytes
Expected result : User should get an error saying that the file uploaded is too large.
Notes: I took a quick peek at Xenforo/Model/Avatar.php and it looks like the comparison is being done against the final output rather than the size of the actual image that is being uploaded. Is this intended please?
Thanks in advance