Eliminate 4000 character per message (message length)
Currently I can't create messages with more than 4000 characters. This limit should be removed.
Thank you for nominating the feature! It is now available in Mattermost 5.0!
New installs of Mattermost v5.0 and later allow up to 16383 characters per post. Instances of Mattermost installed earlier than v5.0 will need to update to v5.0 or later and then run a manual database migration in order to utilize the higher character limit. This migration can be slow for large Posts tables, so it’s best to schedule this during off-peak hours. See important upgrade notes (https://docs.mattermost.com/administration/important-upgrade-notes.html) for more details.
To migrate a MySQL database, connect to your database and run the following:
ALTER TABLE Posts MODIFY COLUMN Message TEXT;
To migrate a PostgreSQL database, connect to your database and run the following:
ALTER TABLE Posts ALTER COLUMN Message TYPE VARCHAR;
Restart your Mattermost instances.
-
ylluminate commented
Unfortunately this is not really large enough. On some research projects it's useful to have larger limits due to links / other metadata that cannot easily be truncated. Can you please facilitate arbitrary control of this amount through the admin config interface or by modifying the database schema?
-
Jason Smith commented
It seems like this is a locking table which hangs your instance, so it's more than "slow". People should consider it a short outage, right? Maybe the guidance here should specify that?
Also, I have mine now set to
message | character varying(65535)
I restarted Mattermost, but the client is stopping me at 16383 characters.
Is more than 16383 actually not supported? -
As of 5.0.0, the maximum post message size is 16383 (multi-byte) characters. If your logs show a number less than this limit and you want to enable longer post messages, you will need to manually migrate your database as described below. This migration can be slow for larger Posts tables, so it’s best to schedule this upgrade during off-peak hours.
To migrate a MySQL database, connect to your database and run the following:
ALTER TABLE Posts MODIFY COLUMN Message TEXT;
To migrate a PostgreSQL database, connect to your database and run the following:
ALTER TABLE Posts ALTER COLUMN Message TYPE VARCHAR(65535);
Restart your Mattermost instances.
---
For new installs as of Mattermost 5.0 and later, deployments will have the higher character limit by default.
-
Anonymous commented
@Mattermost Admin - What exactly is it that is available in Mattermost 5.0? And is there a feature/flag/config-thing that is needed to enable this? Is there a new (higher) limit now? If so, what is the limit?
-
Hugo commented
Any update on this?
-
yehonatanz commented
Making the limit configurable will be amazing and I'm willing to implement it.
-
Julien L. commented
It definitely does make sense to have a limit, but the limit should be configurable: I can imagine some people would want a lower limit for their usage of Mattermost, and at my work we often find ourselves needing more thank 4000.
-
Chris Uzdavinis commented
While some kind of limit may be useful to prevent manifestos from being posted, 4k chars is extremely limiting when we need to exchange more information, especially source code.
-
gubbins commented
This is a frequent request at my workplace, particularly when users exchange snippets of code or logs.
-
Anonymous commented
would be nice to for this feature to also show a preview of the text. for example you could show the first 3-4 lines of the text file instead of "</>" which is currently shown
-
livelace commented
I have voted and I really need a mechanism which allows me to receive big messages, such as a table with links and other things.
-
Sean Jones commented
Have the client automatically create text attachments for messages that exceed the 4000 character limit.