I\'ve written code that uses Angular $http to download a file. The name of the file is not specified in the URL. The URL contains a unique identifier for the file, wh
If response.headers('Content-Disposition') returns null, use response.headers.**get**('Content-Disposition');.
response.headers('Content-Disposition')
response.headers.**get**('Content-Disposition');
The rest of @andrew's snippet now works great.