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

前端 未结 21 2904
一向
一向 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:34

    Thank you everybody for the vary comprehensive replies. Those are all very helpful. The answer turned out to be something very odd. It turns out that PHP 5.2.11 doesn't like the following:

    post_max_size = 2G
    

    or

    post_max_size = 2048M
    

    If I change it to 2047M, the upload works.

提交回复
热议问题