Home >CMS Tutorial >PHPCMS >What to do if phpcms cannot upload videos

What to do if phpcms cannot upload videos

藏色散人
藏色散人Original
2020-07-17 10:26:552328browse

Solution to the problem that phpcms cannot upload videos: First find and open the "php.ini" file; then modify the content to "upload_max_filesize = 10M"; finally add a line of code to the upload program as "@set_time_limit(5 * 60);".

What to do if phpcms cannot upload videos

##phpcmsUnable to upload video

Approximately There are several reasons:

1. If other files are uploaded normally, it may be that the file size exceeds the maximum upload limit configured by PHP. Modify php.ini

upload_max_filesize = 10M

to the value you want.

2. If the file is too large, the upload time will be correspondingly large, which may cause PHP to run timeout. Add a line of code to the upload program:

@set_time_limit(5 * 60);

The unit here is seconds. The above code sets the script timeout to 5 minutes. If it is not enough, it can be set larger. Or set to 0 to not limit the timeout.

3. The server disk is full, making it impossible to save new files. This possibility is relatively small

The above is the detailed content of What to do if phpcms cannot upload videos. 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