this post was submitted on 03 Jul 2023
24 points (96.2% liked)

sh.itjust.works Main Community

7701 readers
1 users here now

Home of the sh.itjust.works instance.

Matrix

founded 1 year ago
MODERATORS
 

What the title says. I’m trying to upload an image but whenever I go to attach it, I just get SyntaxError: JSON Parse Error: Unrecognized token '<' twice. I’d demonstrate but uh that’s kind of my issue. I’ve tried from the site on mobile and on desktop and it’s the same issue. Community doesn’t seem to matter because I don’t even have to get that far to try.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 6 points 1 year ago (5 children)

Seems like it might be due to file size. Anything more than a few hundred kilobytes fails to upload.

[–] [email protected] 4 points 1 year ago

Yeah ok this was indeed the solution, compressed the image down to ~600KB and it uploaded fine.

[–] [email protected] 4 points 1 year ago* (last edited 1 year ago)

Got same error, solved by reducing size. The error message would need some improvement, though...

[–] [email protected] 3 points 1 year ago

Haven't tried uploading an image today, had same error as you, didn't work on jerboa, did work on mobile site.

Will try again later (when I have something to post)

[–] [email protected] 3 points 1 year ago

Yeah it's a file size issue. I had the same problem trying to upload a gif.

[–] [email protected] 2 points 1 year ago

Ah ok. I shall attempt some image compression and see if that works shortly.