revolter / notepadtab.com

https://notepadtab.com/
GNU General Public License v3.0
128 stars 8 forks source link

Add character limit to prevent data loss #4

Open AlexW00 opened 3 months ago

AlexW00 commented 3 months ago

Problem: When typing too much, the url becomes too long and the text can't be fully encoded anymore

Solution: Add a character limit, or warn the user once the text becomes too long

revolter commented 3 months ago

From https://stackoverflow.com/a/417184/865175, it seems like:

Knowing these, I think that the safest (most compatible) limit would be the smallest one, which is 8 000 characters.

What do you think?