fix for sending image attachment
This commit is contained in:
@@ -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()),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user