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?

藏色散人
藏色散人Original
2020-02-05 10:22:462754browse

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'];
}

. 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!

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