Home >Backend Development >PHP Problem >What should I do if the file cannot be found after php uploads it?
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"].
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!