How does image uploading work on Lemmy?

3 years ago by Silviecat44 to c/asklemmy

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?

load all comments
pimeys 8 points 3 years ago

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.

path: 0 65303, hotness: undefined, score: 8, children: 4
tjr 1 point 3 years ago

Probably not a bad idea to enable S3 support

path: 0 65303 67696, hotness: undefined, score: 1, children: 3
pimeys 3 points 3 years ago

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...

path: 0 65303 67696 67697, hotness: undefined, score: 3, children: 1
tjr 3 points 3 years ago

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

path: 0 65303 67696 67697 67728, hotness: undefined, score: 3, children: 0
pimeys 1 point 3 years ago

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..

path: 0 65303 67696 82139, hotness: undefined, score: 1, children: 0
asklemmy
asklemmy

@lemmy.ml

login for more options
55847
8812
4168

A loosely moderated place to ask open-ended questions

Search asklemmy ๏ฟฝ*

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

Icon by @Double_A@discuss.tchncs.de

go to feed...