removed tmp files
Lookup file info from uri, istead of filename
Merge pull request #2 from syddjurs/b/CWE-856-87488_permissions-denied-attachments

B/cwe 856 87488 permissions denied attachments