fix file download
Merge branch 'origin/feature-attachments'