diff options
author | Alex Vitkov <alexvitkov98@gmail.com> | 2021-02-13 00:51:39 +0200 |
---|---|---|
committer | Alex Vitkov <alexvitkov98@gmail.com> | 2021-02-13 00:51:39 +0200 |
commit | ca4e0cbb1471e837197cd2ed30b1ea3c274ab41d (patch) | |
tree | f8707e1aeff617916fc8684b418e7e28d56b08a9 /loggedin.js | |
parent | a218bdd5fc29f4dab9f68c4eb9173db0627046c1 (diff) | |
download | fileup-ca4e0cbb1471e837197cd2ed30b1ea3c274ab41d.tar.gz |
Upload.php now can upload in direcotires other than root
Diffstat (limited to 'loggedin.js')
-rw-r--r-- | loggedin.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/loggedin.js b/loggedin.js index c84f650..a2c211b 100644 --- a/loggedin.js +++ b/loggedin.js @@ -6,6 +6,7 @@ const filename_input = document.getElementById("filename"); const upload_btn = document.getElementById("upload_btn"); const the_path = document.getElementById("the_path"); const current_directory = document.getElementById("current_directory"); +const upload_parent_directory = document.getElementById("upload_parent_directory"); the_file.onchange = on_file_added; @@ -36,7 +37,8 @@ var files = []; function on_file_added(_e) { if (the_file.files.length >= 1) { - filename_input.value = the_file.files[0].name; + filename_input.value = the_file.files[0].name; + upload_parent_directory.value = get_path(); if (!FORM_ASYNC) { upload_form.submit(); |