Why would $_FILES be empty when uploading files to PHP?

前端 未结 21 2895
一向
一向 2020-11-21 22:37

I have WampServer 2 installed on my Windows 7 computer. I\'m using Apache 2.2.11 and PHP 5.2.11. When I attempt to upload any file from a form, it seems to upload, but in PH

21条回答
  •  花落未央
    2020-11-21 23:21

    Make sure your input element has a 'name' attribute.

    If this is missing the $_FILES will be empty.

提交回复
热议问题