From f5b00402c92cd1abf44bbd7a8bbc8f9a0a3d755b Mon Sep 17 00:00:00 2001 From: borissedw Date: Sun, 10 Sep 2023 19:39:07 +0300 Subject: [PATCH] 0.0.238 --- static/js/user_profile(boris).js | 9 +++++++-- templates/blocks/profile/b_chats.html | 2 +- templates/blocks/profile/b_support_chat.html | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/static/js/user_profile(boris).js b/static/js/user_profile(boris).js index b76372c..e5df614 100644 --- a/static/js/user_profile(boris).js +++ b/static/js/user_profile(boris).js @@ -74,7 +74,7 @@ function attachFileCreateTicket () { } -function attachFilemeassge (el,id_ticket=null,sender,receiver) { +function attachFilemeassge (e,el,id_ticket=null,sender,receiver) { let input = inputQuest() let file = input.files[0] let int = setInterval(function (){ @@ -83,7 +83,12 @@ function attachFilemeassge (el,id_ticket=null,sender,receiver) { // } else { - let file_1 = window.URL.createObjectURL(file) + // let file_1 = URL.createObjectURL(file) + // let file_1 = URL.createObjectURL(file) + // var reader = new FileReader(); + // var file = new ArrayBuffer(file); + // let file_1 = reader.readAsArrayBuffer(file) + let file_1 = new Blob([file],{'type':file.type}) // let file_url = URL.createObjectURL(file) let data = file_1 diff --git a/templates/blocks/profile/b_chats.html b/templates/blocks/profile/b_chats.html index 6bdf8eb..a0e6569 100644 --- a/templates/blocks/profile/b_chats.html +++ b/templates/blocks/profile/b_chats.html @@ -61,7 +61,7 @@
- + {# #}
diff --git a/templates/blocks/profile/b_support_chat.html b/templates/blocks/profile/b_support_chat.html index 9ff0713..0db2773 100644 --- a/templates/blocks/profile/b_support_chat.html +++ b/templates/blocks/profile/b_support_chat.html @@ -52,7 +52,7 @@
- +