aboutsummaryrefslogtreecommitdiffstats
path: root/loggedin.js
diff options
context:
space:
mode:
authoradam <adam@>2021-02-13 13:26:41 +0200
committeradam <adam@>2021-02-13 13:26:41 +0200
commit8b1393b3f06fdd86abc3dca396670965c42ba8c2 (patch)
tree95a167bcacb1eb9e9d6ac48bda3c7e8ef77c8ff9 /loggedin.js
parent8f8d22109484308255d16f318cb488b3c8519885 (diff)
parent3ab8276b269b3d646d232cf093d13bb280e28bf7 (diff)
downloadfileup-8b1393b3f06fdd86abc3dca396670965c42ba8c2.tar.gz
Merge https://github.com/alexvitkov/india
Diffstat (limited to 'loggedin.js')
-rw-r--r--loggedin.js4
1 files changed, 2 insertions, 2 deletions
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);
}