KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a Django view which returns an HttpResponse with a special MIME type to make the user's browser "download" the file instead of view it in the browser. The problem is that the default filename that the response will be saved as is the URL which the user tried to access. Is there any way to include a default filename in the HttpResponse object or do I have to redirect to a different URL to make this happen?
Tags (comma-separated)
Save Edits
Cancel