I have a simple Meteor app, that lets users fill in a form into a <textarea>
which will be displayed on their public profile.
Everything is working, I happen to be using {{#markdown}}
to display the text on public profile. Everything works well.
Questions:
- How would I limit the amount of text the user can submit ?
- Does Meteor somehow limit this ?
- Is it a good idea to put a limit on this ?
I assume some code would have to be put in a server js
file rather than client js
side
No user would need more than a page or two of text.
I know I this will allow only 5K of text in box...
<textarea maxlength="50000">
- but I think that can be defeated in the browser
~ Thanks