mazzorini / Anchorcms-0.9.2-drag-drop-fix

Anchorcms drag&drop upload working
16 stars 1 forks source link

No JSON returned #6

Open ssavinel opened 8 years ago

ssavinel commented 8 years ago

When I try to drag&drop an image in the post content, the console returns this warning : SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data on dragdrop.js l.139

I've been able to track it down to the call of the upload function in the complete function (l. 93) with the params being : /admin/posts/upload/ and a file object.

Of course, nothing happens and the picture doesn't seem to be uploaded.