Project avatar is persisted, even if it is rejected for size
Summary
(Summarize the bug encountered concisely)
Steps to reproduce
- Have an image larger than 200KB
- Go to a Project -> Settings -> General project -> expand
- Under
Project Avatar
click Choose File... - Select the image that is too large and click upload
- Observe the behavior noted below.
Example Project
Any project on GitLab.com
What is the current bug behavior?
Project avatar is shown as broken image, image 404s in the background.
What is the expected correct behavior?
Avatar should revert to previous and/or just remain the "letter" avatar that is generic to a new project.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)
Edited by Brendan O'Leary 🐢