24
submitted 1 year ago* (last edited 1 year ago) by PugJesus@lemmy.world to c/support@lemmy.world

Can't post images, says "SyntaxError: Unexpected token !DOCTYPE "... is not valid JSON"

you are viewing a single comment's thread
view the rest of the comments
[-] Darkassassin07@lemmy.ca 5 points 1 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@lemmy.world 2 points 1 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?

[-] Darkassassin07@lemmy.ca 4 points 1 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)

[-] The_Picard_Maneuver@lemmy.world 2 points 1 year ago

Thank you! This helps

this post was submitted on 28 Aug 2023
24 points (92.9% liked)

Lemmy.world Support

3203 readers
3 users here now

Lemmy.world Support

Welcome to the official Lemmy.world Support community! Post your issues or questions about Lemmy.world here.

This community is for issues related to the Lemmy World instance only. For Lemmy software requests or bug reports, please go to the Lemmy github page.

This community is subject to the rules defined here for lemmy.world.

To open a support ticket Static Badge


You can also DM https://lemmy.world/u/lwreport or email report@lemmy.world (PGP Supported) if you need to reach our directly to the admin team.


Follow us for server news ๐Ÿ˜

Outages ๐Ÿ”ฅ

https://status.lemmy.world



founded 1 year ago
MODERATORS