Ignore file.fileSize error when calculating upload file size
This commit is contained in:
parent
1aae8945f6
commit
fdb31b17bc
|
@ -413,7 +413,14 @@ Zotero.Sync.Storage = new function () {
|
||||||
(item.libraryID ? item.libraryID : 0) + '/' + item.key, callbacks
|
(item.libraryID ? item.libraryID : 0) + '/' + item.key, callbacks
|
||||||
);
|
);
|
||||||
if (queue.type == 'upload') {
|
if (queue.type == 'upload') {
|
||||||
request.setMaxSize(Zotero.Attachments.getTotalFileSize(item));
|
try {
|
||||||
|
request.setMaxSize(Zotero.Attachments.getTotalFileSize(item));
|
||||||
|
}
|
||||||
|
// If this fails, it's no big deal, though we might fail later
|
||||||
|
catch (e) {
|
||||||
|
Components.utils.reportError(e);
|
||||||
|
Zotero.debug(e, 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
queue.addRequest(request, highPriority);
|
queue.addRequest(request, highPriority);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user