<?php if (!is_uploaded_file($HTTP_POST_FILES['upload_file']['tmp_name'])) { $error = "You must upload a file!"; unlink($HTTP_POST_FILES['upload_file']['tmp_name']); } else { } ?>