Open acourdavault opened 5 years ago
This is a year old now, but can confirm the same (I'm downloading file responses from Guzzle, but same idea). The above proposed solution fixes it and the downloads work flawlessly when I set the mimetype to "application/octet-stream". Without adding this line, the download is just a textfile containing the filepath.
Possibly also related to https://github.com/rndme/download/issues/86 and https://github.com/rndme/download/pull/78.
Hello,
When using this library to download a FileResponse from Django returning a PDF file content I realized that the MIMI type was ignored.
download(myBlob, "labels.pdf", 'application/pdf');
I realized that in the paragraph L101-116 the attribute 'type' was not set. 1 line change fixes this