Home >Backend Development >PHP Problem >What should I do if the file cannot be found after php uploads it?

What should I do if the file cannot be found after php uploads it?

王林
王林Original
2020-11-09 13:49:084452browse

The solution to the problem that the file cannot be found after php uploads the file: first open the php.ini configuration file; then modify the configuration [upload_tmp_dir = "C:/Windows/Temp"].

What should I do if the file cannot be found after php uploads it?

Problem:

php upload cannot find the temporary folder

(Learning video recommendation: java video Tutorial)

Error cause analysis:

1. The configuration file does not set a temporary folder

2. The temporary folder does not have the corresponding permissions or the upper-level folder does not have the corresponding permissions

Processing method:

Edit the PHP configuration file PHP.ini and make the following modifications

upload_tmp_dir = "C:/Windows/Temp"  //后面的文件夹路径根据您的系统来设置

If the permissions are insufficient, you can give them respectively according to the different operating systems. File plus corresponding permissions.

Related recommendations: php training

The above is the detailed content of What should I do if the file cannot be found after php uploads it?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn