Skip Navigation

How does image uploading work on Lemmy?

When you upload an image in the URL bar when creating a post, where does it go? Are they hosted on the respective Instance of the community?

28

You're viewing a single thread.

28 comments
  • If you run the normal Ansible setup, there's one docker container running pictrs that's going to handle the image uploads. By default, it stores it into a volume that comes from the server's filesystem. So when you upload an image, it gets stored to the server's file system with the default settings.

    Pictrs supports object storage, and you can get it to store the images to any S3 compatible storage.

    • Probably not a bad idea to enable S3 support

      • Btw, if somebody here makes an instance with pictrs sending data to S3, it would be really cool if you would document it and write a guide how to enable it with a common Ansible deployment. It seems that the docker image doesn't take any environment variables, or at least there is no documented way how to turn on the object storage using the pictrs docker image. Maybe it's not implemented yet, and somebody needs to fork the docker image...

        • I will update this thread if/when I find out more information regarding this.

      • If you tend to upload images/memes etc., yes, it's a good idea. And very cheap (read: free) if you go with Cloudflare R2..

28 comments