Clear Windows read-only attribute when storing file
This commit is contained in:
parent
c3df3fcebf
commit
6941f96a5a
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue