I\'m trying to upload a file to my server But the problem is the if(isset($_FILES[\'upl\'])) always returns false
my php:
if($_SERVER[\'REQUEST_METHO
For file upload, you need to add attribute:
enctype="multipart/form-data"
So, your updated code should be: