Getting the following error every time I try to upload an image anywhere on the site:

SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
    at parse (<anonymous>)
(anonymous) @ client.js:1

Is this a site wide issue or something I could fix?

      • InEnduringGrowStrong@lemm.ee
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        I think the idea behind a low limit is to push people into linking to image hosting sites instead of hosting a ton of media on here.
        I too would prefer images to be hosted locally, but I get that storage and associated costs can snowball pretty quick with something this big.
        The 100kB limit should be OK for avatars and banners, which can’t be hosted elsewhere.
        Hopefully, it can be bumped a bit higher in the future.

      • thegiddystitcher@lemm.ee
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        Honestly, no idea. My account is mostly focused on crafting so I share a lot of photos of projects, it would be handy, but I completely understand that letting us upload and store images would significantly increase the resources needed for the server. Luckily it’s easy to add images hosted elsewhere.

        I think Sunaurus did say he’d look at potentially upping it eventually, but when that might be or whether it’s even going to be feasible I couldn’t say

  • Zathras@lemm.ee
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 year ago

    I have a 80 kb pic I am trying to upload as an avatar and also getting a JSON error

    • sunaurus@lemm.eeM
      link
      fedilink
      English
      arrow-up
      6
      ·
      1 year ago

      That definitely shouldn’t be happening. If you happen to be on either platform, you could DM me on Matrix (@sunaurus:matrix.org) or Discord (@sunaurus) - if you send me the exact image that is failing, I can debug further over the weekend.