Can’t post images, says "SyntaxError: Unexpected token !DOCTYPE “… is not valid JSON”

  • @[email protected]
    link
    fedilink
    English
    51 year ago

    Some instances are disabling image uploads temporarily until they can deal with the trash that’s uploading CSAM.

    Not certain if lemmy.world is one of them.

    Upload to imgur, copy the image link and post that (the link ending in .jpg/.webp, not the plain imgur link) for the time being.

    • The Picard Maneuver
      link
      21 year ago

      I tried to do this earlier and I think I messed up, because it was directing off site instead of viewable in Lemmy. Does that mean I likely pasted the link instead of the image?

      • @[email protected]
        link
        fedilink
        English
        41 year ago

        When you finish uploading you’re brought to a full webpage with the image embedded in it like this:

        https://imgur.com/a/SzSKW5M

        You want to right-click on the image and select ‘open image in new tab’ which gives you this:

        https://i.imgur.com/GFTwYm3.jpg

        (if you’re on mobile first select ‘desktop site’ from the browsers options or you’ll get a low quality .webp version from the open image button. It’ll work, but many ppl hate it)

        Finally format it like this to embed it in a post/comment:

        ![](https://i.imgur.com/GFTwYm3.jpg)

        (I added backslashes to the front of that to prevent it embedding the link as an image and show you the formatting instead)