Added function to download attachments
enabled file download