sconsult / croppic

croppic
914 stars 228 forks source link

Unexpected token < in JSON at position 10 #270

Open AbdellahF opened 7 years ago

AbdellahF commented 7 years ago

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

tobalsan commented 6 years ago

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.