mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-28 09:43:13 +00:00
fix for sending image attachment
This commit is contained in:
parent
02e62c3a3e
commit
cdd2999a6f
1 changed files with 2 additions and 1 deletions
|
|
@ -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()),
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue