commit fdb31b17bc5f717396d55870987779ca2ce48b0a
parent 1aae8945f648973a42b5fb1107ae61f3365792d9
Author: Dan Stillman <dstillman@zotero.org>
Date: Tue, 2 Apr 2013 17:59:11 -0400
Ignore file.fileSize error when calculating upload file size
Diffstat:
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js
@@ -413,7 +413,14 @@ Zotero.Sync.Storage = new function () {
(item.libraryID ? item.libraryID : 0) + '/' + item.key, callbacks
);
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);
};