Home > CMS Tutorial > PHPCMS > What should I do if phpcms does not allow uploading this type of file?

What should I do if phpcms does not allow uploading this type of file?

藏色散人
Release: 2020-02-05 10:22:46
Original
2779 people have browsed it

What should I do if phpcms does not allow uploading this type of file?

What should I do if phpcms does not allow this type of file to be uploaded?

Recently, a multi-file upload type has been defined in the custom field, and the flv file format defined in it, but when adding it from the front desk, it cannot be added, and it keeps prompting that the file type is not allowed to be uploaded. Later, after debugging, I found such a condition in

if(empty($alowexts) || $alowexts == '') {
$site_setting = $this->_get_site_setting($this->siteid);
$alowexts = $site_setting['upload_allowext'];
}
Copy after login

. It turned out that the file types allowed to be uploaded were not selected in the site, and then I set that place on the site and added the flv format.

PHP Chinese website, a large number of free PHPCMS tutorials, welcome to learn online!

The above is the detailed content of What should I do if phpcms does not allow uploading this type of file?. 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