분류 php

Checking for the existence of an uploaded file

컨텐츠 정보

  • 조회 340 (작성일 )

본문

<?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 {

    

}

 

?> 

php