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);