Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem that phpcms cannot upload videos

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

What this article shares with you is about how to solve the problem that phpcms cannot upload videos. The editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

The solution to phpcms's inability to upload videos is to first find and open the "php.ini" file, then change the content to "upload_max_filesize = 10m", and finally add a line to the upload program to read "@ set_time_limit (5 * 60);".

Phpcms failed to upload video

There are probably the following reasons:

1. If other files are uploaded normally, the file size may exceed the maximum upload limit configured by php. Modify php.ini

Upload_max_filesize = 10m

Change to the value you want.

two。 When the file is too large, the upload consumption will be correspondingly large, which may cause the php to run out of time. Add a line of code to the upload program:

@ set_time_limit (5 * 60)

Here is in seconds, the above code is to set the script timeout to 5 minutes, if not enough can be set larger. Or set to 0 without limiting the timeout.

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

The above is how to solve the problem that phpcms cannot upload videos. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report