Current Behavior
If you send a POST request to the /api/users/{id}/avatar with a non file avatar attribute, a server error is produced and 500 status code is returned.
Expected Behavior
A validation exception should be thrown and a proper status code returned.
Environment
Flarum version: 1.1-dev
Additional Context
Integration tests must be added for the avatar endpoint.
Bug Report
Current Behavior If you send a POST request to the
/api/users/{id}/avatar
with a non file avatar attribute, a server error is produced and 500 status code is returned.Expected Behavior A validation exception should be thrown and a proper status code returned.
Environment
Additional Context Integration tests must be added for the avatar endpoint.