Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploading incorrect file type for site/project image should show more useful error message #2179

Open
hudson-newey opened this issue Nov 27, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@hudson-newey
Copy link
Member

hudson-newey commented Nov 27, 2024

If you upload a corrupted image or incorrect file type through the project / sites image input, the error returned is "Internal Server Error".

This is not very descriptive and doesn't help the user fix the problem.

We should check the content type client side and ensure that the image is not corrupted / empty and display a more helpful error message.


This is client issue instead of a server issue because the server is purposely vague in its error messages in an attempt to limit leaking internals.

@hudson-newey hudson-newey added the enhancement New feature or request label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant