Multivaluedictkeyerror When Using Dropzonejs With Django
I'm currently making a profile picture feature for a website, I started using DropzoneJS but I'm having an issue submitting the file. The picture will drop into the zone fine, but
Solution 1:
I expect that img attribute is FileField. right?
user.userprofile.img = request.POST.get('uploaded_image', False)
please try this.
user.userprofile.img = request.FILES.get('uploaded_image')
# if you have multiple files to uploaduser.userprofile.img = request.FILES.getlist('uploaded_image')
Post a Comment for "Multivaluedictkeyerror When Using Dropzonejs With Django"