PHP Undefined index error $_FILES?

后端 未结 4 556
暗喜
暗喜 2020-11-30 14:36

I am new to PHP and am following a tutorial on YouTube. I have everything working in this file, except for the file uploading, any help would be appreciated. Here is the e

4条回答
  •  暖寄归人
    2020-11-30 15:00

    this is a 1 year ago Post but you may still interested .. Check this option in PHP.ini : enable_post_data_reading=off It should be : on otherwise the $_FILES will be empty forever Whether PHP will read the POST data This option is enabled by default. Most likely, you won't want to disable this option globally. It causes $_POST and $_FILES to always be empty.

提交回复
热议问题