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 @@
- +