When adding a header image, the API doesn't validate that it's a JPG before writing, leading to possible duplication of header images and incorrect paths.
To reproduce
Add a PNG-encoded header image to an add-on on the webapp.
Save.
Look at the corresponding folder on the DB for storing the header images.
Screenshot(s)
Notes
Would be ideal to fix the extension on the server end rather than forcing the user to do it.
What happened?
When adding a header image, the API doesn't validate that it's a JPG before writing, leading to possible duplication of header images and incorrect paths.
To reproduce
Screenshot(s)
Notes
Would be ideal to fix the extension on the server end rather than forcing the user to do it.