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?

王林
Release: 2023-03-07 14:00:02
Original
4472 people have browsed 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"].

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"  //后面的文件夹路径根据您的系统来设置
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template