From cdd2999a6fba2098eea6b7f5b90c06eb960383e3 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Sun, 5 May 2024 11:23:44 +1200 Subject: [PATCH] fix for sending image attachment --- public/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index d66b407..8f1638c 100644 --- a/public/index.html +++ b/public/index.html @@ -653,7 +653,8 @@ // add image attachment if(this.newMessageImage){ fields["image"] = { - "image_type": this.newMessageImage.type, + // Reticulum sends image type as "jpg" or "png" and not "image/jpg" or "image/png" + "image_type": this.newMessageImage.type.replace("image/", ""), "image_bytes": this.arrayBufferToBase64(await this.newMessageImage.arrayBuffer()), }; }