I frequently encounter the following error when trying to upload images to post: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

Additional info: jpeg file type, Lemmy web interface, desktop PC, Firefox browser.

Any idea what causes this?

  • Diplomjodler@feddit.de
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    11 months ago

    Did your file have a BOM (byte order mark)? That’s often a cause for errors like that. I’d fire up a hex editor and take a look.