View Issue Details

This issue affects 1 person(s).
 10
IDProjectCategoryView StatusLast Update
16272Bug reportsDocumentationpublic2026-10-07 23:33
ReporterDenisChenu Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version4.2.2 
Summary16272: Purpose of allowedfileuploads
Description

In 4.X there are a new settings : allowedfileuploads what is the exact purpose ?

It seems to be used for LimeSurveyFileManager, then for ressource file, but we already have allowedresourcesuploads for this.
Then : maybe it was a general restriction ? In theme too ?

Steps To Reproduce

None

Additional Information
[shnoulle@poledra application]$ grep -r "allowedthemeuploads" *
config/config-defaults.php:$config['allowedthemeuploads'] = 'gif,ico,jpg,png,css,js,map,json,eot,ttf,woff,txt,md,xml,woff2,twig'; // File types allowed to be uploaded in the themes section.
controllers/admin/themes.php:            $allowedthemeuploads = Yii::app()->getConfig('allowedthemeuploads');
controllers/admin/themes.php:                } elseif (!in_array(strtolower(substr(strrchr($filename, '.'), 1)), explode(",", $allowedthemeuploads))) {
core/LS_Twig_Extension.php:        /* get extension of file in allowedthemeuploads */
core/LS_Twig_Extension.php:        $aAllowExtensions = explode(',', Yii::app()->getConfig('allowedthemeuploads'));
helpers/admin/template_helper.php:    $aAllowExtensions = explode(',', Yii::app()->getConfig('allowedthemeuploads'));
views/admin/themes/templateeditorbar_view.php:            var allowedtypes=',<?php echo Yii::app()->getConfig('allowedthemeuploads'); ?>,';
[shnoulle@poledra application]$ grep -r "allowedresourcesuploads" *
config/config-defaults.php:$config['allowedresourcesuploads'] = '7z,aiff,asf,avi,bmp,csv,doc,docx,fla,flv,gif,gz,gzip,ico,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pxd,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xlsx,xml,zip,css,js'; // File types allowed to be uploaded in the resources sections, and with the HTML Editor
core/Survey_Common_Action.php:                    if (!(stripos(','.Yii::app()->getConfig('allowedresourcesuploads').',', ','.$extfile.',') === false)) {
helpers/admin/htmleditor_helper.php:        $sAllowedExtensions = implode(' ', array_map('trim', explode(',', Yii::app()->getConfig('allowedresourcesuploads'))));
[shnoulle@poledra application]$ grep -r "allowedfileuploads" *
config/config-defaults.php:$config['allowedfileuploads'] = [
controllers/admin/LimeSurveyFileManager.php:        return Yii::app()->getConfig('allowedfileuploads');
helpers/common_helper.php:    $aAllowExtensions = Yii::app()->getConfig('allowedfileuploads');
TagsNo tags attached.
Bug heat10
Complete LimeSurvey version number (& build)4.2.3 github
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database type & versionnot relevant
Server OS (if known)not relevant
Webserver software & version (if known)not relevant
PHP Versionnot relevant

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2020-05-14 09:42

developer   ~57767

PS : quicly added : https://manual.limesurvey.org/Optional_settings#Upload_files

ollehar

ollehar

2020-05-14 16:39

reporter   ~57793

Something to consider when we revert the file manager.

DenisChenu

DenisChenu

2020-05-14 17:53

developer   ~57810

allowedresourcesuploads are deprecated currently ?

cdorin

cdorin

2020-12-28 13:45

reporter   ~61219

@ollehar, can this one be closed?

ollehar

ollehar

2020-12-28 17:43

reporter   ~61242

Dunno, maybe Denis has a comment?

DenisChenu

DenisChenu

2020-12-29 08:45

developer   ~61264

Manual is OK ?

c_schmitz

c_schmitz

2026-10-03 09:52

administrator   ~86196

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=40669

LimeBot

LimeBot

2026-10-07 23:33

administrator   ~86250

Fixed in Release 7.5.1+261007

Related Changesets

LimeSurvey: master 0c42b214

2026-10-03 09:49

c_schmitz


Details Diff
Fixed issue 16272: The allowedfileuploads setting had no effect but was still offered as a config option
Dev Removed the unused allowedfileuploads config and the dead resourceExtractFilter() helper left over from the removed File Manager
Affected Issues
16272
mod - application/config/config-defaults.php Diff File
mod - application/helpers/common_helper.php Diff File

Issue History

Date Modified Username Field Change
2020-05-14 09:42 DenisChenu New Issue
2020-05-14 09:42 DenisChenu Note Added: 57767
2020-05-14 16:39 ollehar Note Added: 57793
2020-05-14 16:39 ollehar Priority none => normal
2020-05-14 17:53 DenisChenu Note Added: 57810
2020-12-28 13:45 cdorin Note Added: 61219
2020-12-28 13:45 cdorin Status new => feedback
2020-12-28 17:43 ollehar Note Added: 61242
2020-12-29 08:45 DenisChenu Note Added: 61264
2020-12-29 08:45 DenisChenu Status feedback => new
2026-10-03 09:52 c_schmitz Changeset attached => LimeSurvey master 0c42b214
2026-10-03 09:52 c_schmitz Note Added: 86196
2026-10-03 09:52 c_schmitz Assigned To => c_schmitz
2026-10-03 09:52 c_schmitz Status new => resolved
2026-10-03 09:52 c_schmitz Resolution open => fixed
2026-10-03 09:52 c_schmitz Bug heat 6 => 8
2026-10-07 23:33 LimeBot Note Added: 86250
2026-10-07 23:33 LimeBot Status resolved => closed
2026-10-07 23:33 LimeBot Bug heat 8 => 10