sebbacon/alaveteli — Issue #428: When downloading attachments, we should set "content-disposition" header
Author: sebbacon
Created: 2012-02-15 09:44:37+00:00
State: open

Some users have reported problems downloading attachments which are definitely there.

In one case the user 's IP was issuing a GET request from a user agent called "Microsoft Office Existence Discovery".

I'm not totally sure from reading what I can find (because that refers to HEAD rather than GET), but it seems that this is Office (Outlook?) issuing a request to find out if it might be able to edit the document. See, for example http://superuser.com/questions/41935/clicking-hyperlinks-in-email-messages-becomes-painfully-slow.

Whether or not that fixes the end user error, it sounds like we should be setting `Content-Disposition: attachment` in any case.