I'm switching from dropzone.js to filedrop.js. I'm using the same endpoint as I did for dropzone.js, but I get a 400 error dropping the example code into my html. I'm not quite sure where to go from here to debug it. I'm not sure if it's a simple different in how filedrop.js handles encoding or domains compared to dropzone.js. Any tips for debugging this?
-- Here's the request being set out when uploading a png.
- And here's the code I had previously in the handler.
@app.route('/header', methods=['GET', 'POST'])
@requires_auth
def header(forcedName=None):
print('header')
if request.method == 'POST':
file = request.files['file']
print(file)
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPVmgLhKW-toQfuObYPHYTx%2BBsvBPf9ebWFkPGAmAVOd_W8tyg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment