PHP File Upload, files disappearing from /tmp before move_uploaded_files

前端 未结 14 2031
独厮守ぢ
独厮守ぢ 2021-02-13 03:09

I have a very basic upload script, probably lifted straight off the php.net/move_upload_files function page.

move_uploaded_file() is failed because it canno

14条回答
  •  南旧
    南旧 (楼主)
    2021-02-13 03:32

    I had the same problem, where 'tmp_name' would say it is being stored in '/private/var/tmp/' but the file would not exist there.

    I had to add "E" to my "variables order" in php.ini ; variables_order Default Value: "EGPCS"

    Hope this helps.

提交回复
热议问题