1👍
Okay, I suspected this, but technically an inline "attachment", while containing a filename in the header, is seen by the browser as being from the URL. So the URL is effectively (imho) overriding the filename.
So this technically is not an Django issue, this is a web browser issue.
This StackOverflow thread:
Put me on the "right" track…
Instead of http://servername/download/(uuid)
I’ve rewritten the URL to be:
http://servername/download/filename?UUID=(uuid)
The filename is displayed in the browser, but is not actually used by Django. The UUID is the only data that is used by the server. So cosmetically this solves the issue…
I’m not in love with this solution, but it’s simple, and works…
But if anyone has an more elegant solution, or feels like pointing out some issues, please feel free…