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

  • 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)