Increasing the file size for image attachments


#1

Hi,

Is there a way to edit our config files to allow for larger image attachments? At the moment it looks like they’re limited to 8mb, some users are asking for twice that size or more.

Thanks again!


#2

You can edit line 77 and 78 of media_attachment.rb:

Although obviously, images uploaded above the limit may not federate to other instances.

Also be aware that mastodon will scale images to a maximum of 1,638,400 square pixels (1280x1280, or ~1706x960, etc).


closed #3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.