Add correctly the "Content-Disposition" header to attachments