View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
16272Bug reportsDocumentationpublic2020-12-29 08:45
ReporterDenisChenu Assigned To 
PrioritynormalSeverityminor 
Status newResolutionopen 
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 heat6
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

administrator   ~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

administrator   ~61242

Dunno, maybe Denis has a comment?

DenisChenu

DenisChenu

2020-12-29 08:45

developer   ~61264

Manual is OK ?

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