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

Better error messages for post character limit #77

Open
RafDevX opened this issue Feb 6, 2025 · 0 comments
Open

Better error messages for post character limit #77

RafDevX opened this issue Feb 6, 2025 · 0 comments
Labels

Comments

@RafDevX
Copy link
Member

RafDevX commented Feb 6, 2025

Most fields (e.g., title, location, etc.) have type VARCHAR(255) in the database, which means they are already limited to 255 characters. However, it could be made more clear to the user that they are violating this, since they otherwise only receive an error "SQL transaction failed" without any further details.

The most basic possibility is to just add a maximum length requirement to the HTML form on the client-side, which should prevent them from writing too much.

However, in addition, it might also be nice to add validation on the server side and show an error message similar to when the minimum character count isn't respected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant