From 8e6312f1adf68d1ac57dbc2283eb92e794bc7681 Mon Sep 17 00:00:00 2001 From: borissedw Date: Sun, 17 Sep 2023 15:03:32 +0300 Subject: [PATCH] 0.0.249 --- static/js/user_profile(boris).js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/user_profile(boris).js b/static/js/user_profile(boris).js index 5fb2018..fb599c4 100644 --- a/static/js/user_profile(boris).js +++ b/static/js/user_profile(boris).js @@ -122,7 +122,8 @@ function attachFilemeassge (el,id_ticket=null,sender,receiver){ let reader = new FileReader(); - reader.readAsText(file,'UTF-8'); + reader.readAsDataURL(file); + reader.onload = function() { // console.log(reader.result);