Clear Windows read-only attribute when storing file

This commit is contained in:
Dan Stillman 2017-12-02 04:11:35 -05:00
parent c3df3fcebf
commit 6941f96a5a

View file

@ -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);
}