Home > Article > CMS Tutorial > 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!