PHP Upload - Allow only jpg files

后端 未结 2 1912
再見小時候
再見小時候 2021-01-15 21:27

This is what I currently have:

$file_name = $HTTP_POST_FILES[\'uid\'][\'name\'];
$user= \'FILENAME\';
$ext = pathinfo($file_name, PATHINFO_EXTENSION);
$new_f         


        
2条回答
  •  無奈伤痛
    2021-01-15 21:50

     
    

    hope this helps. Also why are you using HTTP_POST_FILES instead of $_FILES? Are you working with an older version of PHP?

提交回复
热议问题