Home > Article > CMS Tutorial > What to do if phpcms cannot upload videos
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);".
##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.iniupload_max_filesize = 10Mto 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!