From 3ab8276b269b3d646d232cf093d13bb280e28bf7 Mon Sep 17 00:00:00 2001 From: Alex Vitkov Date: Sat, 13 Feb 2021 12:51:47 +0200 Subject: /php/readfile.php --- loggedin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'loggedin.js') diff --git a/loggedin.js b/loggedin.js index c2d407f..4b4cb25 100644 --- a/loggedin.js +++ b/loggedin.js @@ -250,12 +250,12 @@ add_link_functionality(document.getElementById("home_path_entry"), 0); function open_file(fileview) { var data = new FormData(); data.append('folder', get_path()); - data.append('path', get_path()); + data.append('filename', fileview.filename); var xhr = new XMLHttpRequest(); xhr.open('POST', '/php/readfile.php', true); xhr.onload = function () { - + console.log(xhr.responseText); }; xhr.send(data); } -- cgit v1.2.3