Why did I set up the temporary upload directory of php.ini, and then my uploaded file showed that it was successful, but there was no temporary folder? -PHP Chinese Website Questions and Answers-Why did I set up the temporary upload directory of php.ini, and then my uploaded file showed that it was successful, but there was no temporary folder? -PHP Chinese website Q&A
Why did I set up the temporary upload directory of php.ini, and then my uploaded file showed that it was successful, but there was no temporary folder? -PHP Chinese Website Questions and Answers-Why did I set up the temporary upload directory of php.ini, and then my uploaded file showed that it was successful, but there was no temporary folder? -PHP Chinese website Q&A
Please watch and learn.
估计你是用move_uploaded_file()函数上传,上传成功的话系统会自动删除临时文件夹中临时文件。当然你也可以用copy()函数上传,上传成功后临时文件仍然存在,为了避免占用空间,一般还要配合unlink()函数手动删除临时文件。