Fix for file attachment links being broken after renaming file
This commit is contained in:
parent
9b7070ad38
commit
70ebccc827
1 changed files with 1 additions and 2 deletions
|
@ -995,13 +995,12 @@ Zotero.Attachments = new function(){
|
|||
* descriptor for files outside the storage directory
|
||||
*/
|
||||
function getPath(file, linkMode) {
|
||||
file.QueryInterface(Components.interfaces.nsILocalFile);
|
||||
if (linkMode == self.LINK_MODE_IMPORTED_URL ||
|
||||
linkMode == self.LINK_MODE_IMPORTED_FILE) {
|
||||
file.QueryInterface(Components.interfaces.nsILocalFile);
|
||||
var fileName = file.getRelativeDescriptor(file.parent);
|
||||
return 'storage:' + fileName;
|
||||
}
|
||||
|
||||
return file.persistentDescriptor;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue