Skip to content

Commit

Permalink
Fix attachment size check
Browse files Browse the repository at this point in the history
I think this was introduced in #8455 sorry it took me so long to notice
  • Loading branch information
Jermolene committed Dec 9, 2024
1 parent 2735ce2 commit e3ce053
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ SqlTiddlerStore.prototype.processIncomingTiddler = function(tiddlerFields, exist
const contentTypeInfo = $tw.config.contentTypeInfo[tiddlerFields.type || "text/vnd.tiddlywiki"];
const isBinary = !!contentTypeInfo && contentTypeInfo.encoding === "base64";

let shouldProcessAttachment = tiddlerFields.text && tiddlerFields.text.length <= attachmentSizeLimit;
let shouldProcessAttachment = tiddlerFields.text && tiddlerFields.text.length > attachmentSizeLimit;

if(existing_attachment_blob) {
const fileSize = this.attachmentStore.getAttachmentFileSize(existing_attachment_blob);
Expand Down

0 comments on commit e3ce053

Please sign in to comment.