Maxikilliane / DH_MusicAnalysis

0 stars 0 forks source link

Bug: Uploading by drag and drop doesn't work #80

Closed RiaRentnueg closed 5 years ago

blueCat11 commented 5 years ago

On drag and drop I get a crsf-token not valid message in my run tab in PyCharm. I don't know why, I was following tutorial code, and double checked that I was passing the csrf.

I've tried to circumvent this issue by using a different library dropzone.js (https://www.dropzonejs.com/) and it should be possible to do what we need to do with that. What first looked difficult was to pass json back to frontend, but there was an item in the FAQ, that seems to do what we need: https://github.com/enyo/dropzone/wiki/FAQ#i-want-to-display-additional-information-after-a-file-uploaded. However I cannot get any of the callback functions mentioned to work. It seems to me that init is never called, and I don't know why. Can one of you look into this, please, @RiaRentnueg @Maxikilliane ?