upload image $_FILES is not set

前端 未结 7 844
星月不相逢
星月不相逢 2020-12-12 07:26

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         


        
7条回答
  •  我在风中等你
    2020-12-12 07:56

    You missed enctype parameter in your from attributes. Its not necessary if you used GET method for file uploading. But if you used POST method for file uploading then, your form parameter should be like this,

提交回复
热议问题