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.

  • Zeppo
    link
    fedilink
    English
    71 year ago

    Yeah, I was having that issue. Now that I read the comments here I realized that I was trying to upload a 3200x3200 image, which is pretty unnecessary for a picture of a pizza. Changed it to 1000x1000 and it went through with no problem.

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

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

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

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

    • @[email protected]
      link
      fedilink
      English
      4
      edit-2
      1 year ago

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

    • @[email protected]
      link
      fedilink
      English
      31 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)

  • @WanderA
    link
    fedilink
    English
    31 year ago

    Tell your instance admin to increase the maximum file size.