Httpresponse Django Does Not Change File Name
I had followed 3 of answers: Generating file to download with Django Make Django return response as a 'different filename' Adding a variable in Content disposition response file na
Solution 1:
try this:
from django.utils.http import urlquote
response['Content-Disposition'] = 'attachment; filename={}'.format(urlquote(filename))
Post a Comment for "Httpresponse Django Does Not Change File Name"