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

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

    I ran into the same issue and found that it was my IDE was part of the issue. I was launching the debugger directly from the IDE (PHPStorm) instead of just using the browser directly. The IDE spawned URL was like this:

    "...localhost:63342/CB_Upload/index.php?_ijt=j2hcbacqepj87bvg66ncuohvne"
    

    and just using:

    "...localhost/CB_Upload/index.php"
    

    worked just fine. My set up is PC / Windows 10 / WAMPSERVER 3.0.6 64bit

提交回复
热议问题