mucked about with Telnet
This commit is contained in:
@@ -10,8 +10,9 @@
|
||||
# echo("File was uploaded successfully!");
|
||||
|
||||
// this part needs to be grabed from POST uri
|
||||
//$target_dir = "./www/uploaded/";
|
||||
$target_dir = $_POST["upload_dir"];
|
||||
$target_dir = "./www/uploaded/";
|
||||
//$target_dir = $_POST["upload_dir"];
|
||||
//$target_dir = $_GET["upload_dir"];
|
||||
$target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]);
|
||||
$uploadOk = 1;
|
||||
$fileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION));
|
||||
|
||||
Reference in New Issue
Block a user