diff --git a/frontend/admin_panel.html b/frontend/admin_panel.html
index 972fa39..5cee1ec 100644
--- a/frontend/admin_panel.html
+++ b/frontend/admin_panel.html
@@ -61,7 +61,7 @@
Администрирование
downloadObjectAsJson(body, 'data');
}));
}
-
+
function showFiles(input) {
const file = input.files[0];
console.log(file);
@@ -72,16 +72,15 @@ Администрирование
headers: {
'Content-Type': 'application/json'
},
- body: JSON.stringify({
- data: e.target.result
- })
+ body:
+ e.target.result
})
.then((resp) => resp.json().then((body) => {
console.log(body);
}));
};
- reader.readAsDataURL(file);
+ reader.readAsText(file);
}