GetmeUK / ContentTools

A JS library for building WYSIWYG editors for HTML content.
http://getcontenttools.com
MIT License
3.95k stars 393 forks source link

Uncaught SyntaxError: Unexpected token < in JSON at position 0 #498

Closed mmueller96 closed 6 years ago

mmueller96 commented 6 years ago

in this line of the event listener fileready response = JSON.parse(ev.target.responseText); i get a exception Uncaught SyntaxError: Unexpected token < in JSON at position 0 Why? its copied from your tutorial.

anthonyjb commented 6 years ago

My guess would be that your response from the server you're uploading your file to isn't valid JSON.