Where does PHP save temporary files during uploading?

前端 未结 8 1418
情书的邮戳
情书的邮戳 2021-02-07 05:50

I am using XAMPP on Windows. By printing $_FILES[\"file\"][\"tmp_name\"], it seems that the temporary file was saved at C:\\xampp\\tmp\\phpABCD.tmp. But I cannot se

8条回答
  •  灰色年华
    2021-02-07 06:18

    You can check where php is currently saving your temp files $_FILES["file"]["tmp_name"] by printing

        sys_get_temp_dir()
    

提交回复
热议问题