sconsult / croppic

croppic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unexpected token < in JSON at position 10

AbdellahF opened this issue · comments

Hi everyone,
can someone point me to the solution of this issue ?
Unexpected token < in JSON at position 10

Hey,

it's because the plugin immediately uploads to the server, so the script expects a JSON response.
Read again the doc, especially the UPLOAD URL section.

Note that if you don't want your file uploaded before cropping, you can set the option processInline to true.