You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting this error in my application every time I try to upload a file (0.2.2):
File "/django_filepicker/utils.py", line 62, in get_file
file = File(tmp, name=name)
UnboundLocalError: local variable ‘name’ referenced before assignment
I suppose I am getting this because neither the X-File-Name nor Content-Disposition headers are being set by the application.
The thing is I'm not sure why, can you shed me a light?
Also, maybe that's something you wanna protect from, like having a default for the name variable maybe?
Thanks!
The text was updated successfully, but these errors were encountered:
I'm getting this error in my application every time I try to upload a file (0.2.2):
I suppose I am getting this because neither the
X-File-Name
norContent-Disposition
headers are being set by the application.The thing is I'm not sure why, can you shed me a light?
Also, maybe that's something you wanna protect from, like having a default for the
name
variable maybe?Thanks!
The text was updated successfully, but these errors were encountered: