From e363bef5842f48c54b7f95d2fe690b65547c26bd Mon Sep 17 00:00:00 2001 From: Tom McAtee Date: Tue, 2 May 2017 00:30:24 +0930 Subject: [PATCH] Adding FAQ regarding default upload size limit (#187) Addressing #153 Should this be part of the FAQ or should it be under the 'running Mastodon' documentation tree? --- Using-Mastodon/FAQ.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Using-Mastodon/FAQ.md b/Using-Mastodon/FAQ.md index 3f09f67..227e1fe 100644 --- a/Using-Mastodon/FAQ.md +++ b/Using-Mastodon/FAQ.md @@ -230,6 +230,13 @@ By default, toots are federated (public), and will show on both timelines. You c Preferences Post Privacy +#### What is the default image upload size limit and how can I change it? +The default limit is 8 megabytes, however this can be changed by editing the following line in `mastodon/app/models/media_attachment.rb`: + +` validates_attachment_size :file, less_than: 8.megabytes` + +Change the 8 to another integer to change the limit. + #### How do I start my own instance? See the [User Guide](../README.md), under the heading “Running Mastodon.”