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

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

    I was empty $_FILES because after

    i placed

    Initial code was like

    Photos (gif/jpg/jpeg/png) 
    
    
    
    
    

    I decided to modify and

    Photos (gif/jpg/jpeg/png)

    So conclusion is that after

    must be and must not be
    or some other tags

    In my situation correct code was

    Photos (gif/jpg/jpeg/png)

提交回复
热议问题