diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js index 9889b72a00..e79fc79688 100644 --- a/chrome/content/zotero/xpcom/attachments.js +++ b/chrome/content/zotero/xpcom/attachments.js @@ -95,6 +95,8 @@ Zotero.Attachments = new function(){ // Copy file to unique filename, which automatically shortens long filenames newFile = Zotero.File.copyToUnique(file, newFile); + yield Zotero.File.setNormalFilePermissions(newFile.path); + if (!contentType) { contentType = yield Zotero.MIME.getMIMETypeFromFile(newFile); }