upload image $_FILES is not set

前端 未结 7 835
星月不相逢
星月不相逢 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 08:11

    you should add the attribute enctype="multipart/form-data" in form tag to upload the file into server....

提交回复
热议问题