iOS Safari download attribute

I am working on an angular2 project and I am recieving binary files (eg PDFs) from a web API with a content-type of octect-stream. When I use FileSaverjs to try and open/save the document it appears as a "unknown" of type "data". Saving this file to Files, say, and renaming it creates a usable file but that's a heck of a workaround to explain to clients on iPads and iPhones (and only iPhones and iPads).


I understand that iOS Safari has no downloads folder but despite including the filename in the content-disposition header I would have expected the "open with" type Safari view to have at least reattached the filename.


I have also used the download attribute to try and reattach the filename, which works in Safari on the Mac, but is not supported in iOS (see caIuse).


This is really frustrating. I really am loathe to write some additional API to download the file.


Any advice would be greatly appreciated.


Cheers!

iOS Safari download attribute
 
 
Q