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?

  • majorswitcher ( majorswitcher@lemmyfly.org ) 
    link
    fedilink
    English
    arrow-up
    6
    ·
    3 years ago

    yes, they are hosted on the server that is running the Lemmy instance. But every other instance that is linked to that instance will ‘scrape’ all posts incl images and store them on they’re own server. So posts and images are served from the instance you yourself are a member of

    • CrimeDad ( Kurt@lemmy.one ) 
      link
      fedilink
      English
      arrow-up
      4
      ·
      3 years ago

      Maybe it doesn’t matter so much because image files are usually relatively small, but it seems kind of inefficient. I wonder if BitTorrent could help somehow.

    • That seems weird. So the more people are here and longer Lemmy instances (any of them) are up the more storage each instance needs? Soon you can’t have small instances because you will need tons of storage for all pictures that have ever been posted in any of the instances?

      • majorswitcher ( majorswitcher@lemmyfly.org ) 
        link
        fedilink
        English
        arrow-up
        2
        ·
        3 years ago

        only pictures and posts that the instance-member are subscribed to, and from the moment they interacted with it. But yes, I’m curious to see where this goes.

        I noticed it when I was looking in the database and disk on my instance, where there are already thousands of posts and more then a thousand images - while my own instance only has a couple of posts and images

        • Kaldo ( Kaldo@beehaw.org ) 
          link
          fedilink
          English
          arrow-up
          3
          ·
          3 years ago

          But it still means if a single user on a small instance is subscribed to a massive media instance, they alone will generate tons of traffic and storage requirement… Seems really weird

        • mjohanning ( mjohanning@beehaw.org ) 
          link
          fedilink
          English
          arrow-up
          1
          ·
          3 years ago

          I run a Mastodon instance and the amount of storage space I need is ridiculous. My own instance doesn’t have a lot of media, but all the other instances that mine federates with do — so I currently have to pay for 500 GB of object storage.

      • majorswitcher ( majorswitcher@lemmyfly.org ) 
        link
        fedilink
        English
        arrow-up
        2
        ·
        3 years ago

        When I look on my server in the volumes/pictrs folder, there are a LOT of images that I recognize from my feed. They are not from posts posted to my server but belong to posts of communities that I have subscribed to

        • Geronimo Wenja ( alex@agora.nop.chat ) 
          link
          fedilink
          English
          arrow-up
          1
          ·
          3 years ago

          Are they thumbnails? If not, perhaps this is configurable… I’ll check out my own images folder and see if it’s pulling them in, but it definitely shows the remote url for images when I’m viewing them on my instance.