tom@520: 0 || $_FILES["config_file"]["error"]) {
tom@520: echo "error: file upload failed";
tom@520: } else {
tom@520: $id_string = uniqid("aim-o-matic", true);
tom@520: $ext = pathinfo($_FILES["audio_file"]["name"], PATHINFO_EXTENSION);
tom@520: move_uploaded_file($_FILES["audio_file"]["tmp_name"], "/home/ubuntu/upload/" . $id_string . "." . $ext);
tom@520: move_uploaded_file($_FILES["config_file"]["tmp_name"], "/home/ubuntu/upload/" . $id_string . ".config");
tom@520: echo "Results will be avaiable shortly, here:
";
tom@520: echo "" . $id_string . "";
tom@520: }
tom@520: } else {
tom@520: echo "error: file too large";
tom@520: }
tom@520:
tom@520: ?>