Skip to content

Commit 666ea5a

Browse files
committed
fix(couchdbAttachment): fix upload of large Blob
1 parent 300266b commit 666ea5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/src/util/couchdbAttachments.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ define([
210210
data = new Blob([data], {content_type: options.contentType});
211211
}
212212
}
213-
} else {
213+
} else if (!(data instanceof Blob)) {
214214
throw new Error('Data must be Blob or base64 dataUrl');
215215
}
216216

0 commit comments

Comments
 (0)