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

Set maximum size limits for user provided content #4694

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mmd-osm
Copy link
Contributor

@mmd-osm mmd-osm commented Apr 13, 2024

I believe we should continue adding some upper size limits for various input fields, like we already do for note comments.

Limits in this pull request are a best guess only, and I'm open to make them larger if needed. However, they shouldn't be unlimited as they are today.

I'm aware that there are existing limits imposed by the web server, but I find them too large for input fields.

@mmd-osm mmd-osm changed the title Set maximum limits for user provided content Set maximum size limits for user provided content Apr 13, 2024
@AntonKhorev
Copy link
Contributor

Error message when trying to add a comment that is too long:
image

@mmd-osm
Copy link
Contributor Author

mmd-osm commented Apr 13, 2024

For some reason, the three limits for comments don't seem to work yet. I don't get the error message above, instead the comment is simply discarded. I need to double check how this was done for note comments, where this is working as expected. The textarea has a maxlength="..." attribute that's probably missing here. -> now added!

This should really behave like on the profile page:

image

@mmd-osm mmd-osm marked this pull request as draft April 13, 2024 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants