webflashing I'm encountering this error while trying to upload an avatar pic. To try and solve it, I changed the following php.ini variables: upload_max_filesize = 10M post_max_size = 32M. This didn't solve the issue, which leds me to believe this is a Flarum configuration that I can't seem to find. Any idea where this could be? Thanks!
LukeFlynn I ended up having to edit a core PHP file, I don't recall which one right now.. but I do know it's hard coded into flarum for the time being.. I imagine it will be configurable in the future.
webflashing LukeFlynn Thank you very much for the input, I'll look into it then and try to find it. In the meantime, can any mod chip in on this as to where it may be located?
LukeFlynn vendor/flarum/core/src/Core/Validator/AvatarValidator.php Is the file, I don't remember exactly what I edited, but it's a very small file IIRC. I would check their github repo and do a search for "1024", that's what I did.
webflashing LukeFlynn Found it! Thank you very much! For future reference, here it is: namespace Flarum\Core\Validator; class AvatarValidator extends AbstractValidator { protected $rules = [ 'avatar' => [ 'required', 'image', 'max:1024' ] ]; }