FILEUP



LOG | FILES | OVERVIEW


F diff --git a/loggedin.js b/loggedin.js --- a/loggedin.js +++ b/loggedin.js
filename_input.value = override_file_filename;
override_input.value = "1";
upload_parent_directory.value = override_file_path;
+ console.log(filename_input.value, override_input.value, upload_parent_directory.value);
} else {
filename_input.value = the_file.files[0].name;
override_input.value = "0";
files = [];
var json = JSON.parse(xhr.responseText);
- console.log(json);
if (!json)
return;
F diff --git a/php/upload.php b/php/upload.php --- a/php/upload.php +++ b/php/upload.php
http_response_code(409);
exit(0);
}
+ unlink("$storage_root/$codename");
move_uploaded_file($file['tmp_name'], "$storage_root/$codename");
http_response_code(200);