瀏覽代碼

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?
Tom McAtee 7 年之前
父節點
當前提交
e363bef584
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      Using-Mastodon/FAQ.md

+ 7 - 0
Using-Mastodon/FAQ.md

@@ -230,6 +230,13 @@ By default, toots are federated (public), and will show on both timelines. You c
 <img src="screenshots/getting_started-preferences.png" alt="Preferences" height="200"/>
 <img src="screenshots/preferences-post_privacy.png" alt="Post Privacy" height="400"/>
 
+#### 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.”