From e3ce053745ce480567dace7f8ad11cf438fb4794 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Mon, 9 Dec 2024 17:51:44 +0000 Subject: [PATCH] Fix attachment size check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I think this was introduced inĀ #8455 sorry it took me so long to notice --- .../multiwikiserver/modules/store/sql-tiddler-store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/tiddlywiki/multiwikiserver/modules/store/sql-tiddler-store.js b/plugins/tiddlywiki/multiwikiserver/modules/store/sql-tiddler-store.js index bd3c80dee..bb32eba18 100644 --- a/plugins/tiddlywiki/multiwikiserver/modules/store/sql-tiddler-store.js +++ b/plugins/tiddlywiki/multiwikiserver/modules/store/sql-tiddler-store.js @@ -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);