76438e9b6959cc0bd7e35fb9cf5a11c87a37f744Allen Rabinovichif ($_SERVER['REQUEST_METHOD"] == 'OPTIONS") {
76438e9b6959cc0bd7e35fb9cf5a11c87a37f744Allen Rabinovich$target_path = $target_path . basename( $_FILES['Filedata"]['name"]);
76438e9b6959cc0bd7e35fb9cf5a11c87a37f744Allen Rabinovich//if(move_uploaded_file($_FILES['Filedata']['tmp_name'], $target_path)) {
76438e9b6959cc0bd7e35fb9cf5a11c87a37f744Allen Rabinovich //echo "The file ".basename( $_FILES['Filedata']['name'])." has been uploaded\n";
76438e9b6959cc0bd7e35fb9cf5a11c87a37f744Allen Rabinovich echo "filename = " . htmlentities($_POST['filename"]) . "<br>";
76438e9b6959cc0bd7e35fb9cf5a11c87a37f744Allen Rabinovich echo "Upload successful";
76438e9b6959cc0bd7e35fb9cf5a11c87a37f744Allen Rabinovich// echo "POST:\n";
76438e9b6959cc0bd7e35fb9cf5a11c87a37f744Allen Rabinovich// foreach($_POST as $key => $value) echo $key."=".htmlentities($value)."\n";
76438e9b6959cc0bd7e35fb9cf5a11c87a37f744Allen Rabinovich// echo "GET:\n";
76438e9b6959cc0bd7e35fb9cf5a11c87a37f744Allen Rabinovich// foreach($_GET as $key => $value) echo $key."=".htmlentities($value)."\n";
76438e9b6959cc0bd7e35fb9cf5a11c87a37f744Allen Rabinovich// echo "There was an error uploading the file, please try again!";