diff options
author | Alex Vitkov <alexvitkov98@gmail.com> | 2021-02-13 12:51:47 +0200 |
---|---|---|
committer | Alex Vitkov <alexvitkov98@gmail.com> | 2021-02-13 12:51:47 +0200 |
commit | 3ab8276b269b3d646d232cf093d13bb280e28bf7 (patch) | |
tree | f7c775cb9b2c9ed3e5bb3ed973b4c1fdf7b0b77d /loggedin.js | |
parent | 0c56b6431133facf94f83faf920cfa58e311dd19 (diff) | |
download | fileup-3ab8276b269b3d646d232cf093d13bb280e28bf7.tar.gz |
/php/readfile.php
Diffstat (limited to 'loggedin.js')
-rw-r--r-- | loggedin.js | 4 |
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); } |