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

前端 未结 21 2923
一向
一向 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条回答
  •  旧时难觅i
    2020-11-21 23:33

    Detach your form form the page you-re using into a simple php page that has the form and php code only, and test it like that.

    Any bootstrap or java script might clean out the _FILES[]. That was my case

提交回复
热议问题