View Issue Details

This bug affects 1 person(s).
 10
IDProjectCategoryView StatusLast Update
05083Bug reportsTheme editorpublic2011-04-11 11:30
Reporterdodev Assigned ToDenisChenu  
PrioritylowSeveritytrivial 
Status closedResolutionfixed 
Fixed in Version1.91RC6 
Summary05083: The template form doesn't accept '.jpeg' files.
Description

The upload form in the template editor gives an 'unsupported filetype' message when trying to upload an image with .jpeg extension. I thought it would be nice if it accepted that extension, because it would save the user a few moments to rename the file :)

Steps To Reproduce

Open Administration >> Template editor and try to upload a file with '.jpeg' extension.

TagsNo tags attached.
Attached Files
fix_img_upload.diff (895 bytes)   
Index: config-defaults.php
===================================================================
--- config-defaults.php	(revision 9963)
+++ config-defaults.php	(working copy)
@@ -86,7 +86,7 @@
 
 $defaulttemplate    =  'default';         // This setting specifys the default theme used for the 'public list' of surveys
 
-$allowedtemplateuploads = 'gif,ico,jpg,png';  // File types allowed to be uploaded in the templates section.
+$allowedtemplateuploads = 'gif,ico,jpg,jpeg,png';  // File types allowed to be uploaded in the templates section.
 
 $allowedresourcesuploads = '7z,aiff,asf,avi,bmp,csv,doc,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,xml,zip,pstpl,css,js';   // File types allowed to be uploaded in the resources sections, and with the HTML Editor
 
fix_img_upload.diff (895 bytes)   
config-defaults-patch (878 bytes)   
--- config-defaults.php	2011-04-04 15:45:39.069349002 +0530
+++ config-defaults-patch.php	2011-04-06 02:22:02.747844002 +0530
@@ -86,7 +86,8 @@
 
 $defaulttemplate    =  'default';         // This setting specifys the default theme used for the 'public list' of surveys
 
-$allowedtemplateuploads = 'gif,ico,jpg,png';  // File types allowed to be uploaded in the templates section.
+//patch to allow jpeg uploads
+$allowedtemplateuploads = 'gif,ico,jpg,png,jpeg';  // File types allowed to be uploaded in the templates section.
 
 $allowedresourcesuploads = '7z,aiff,asf,avi,bmp,csv,doc,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,xml,zip,pstpl,css,js';   // File types allowed to be uploaded in the resources sections, and with the HTML Editor
 
config-defaults-patch (878 bytes)   
Bug heat10
Complete LimeSurvey version number (& build)9963
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMySQL v5.1.55
Server OS (if known)Fedora 14 2.6.35 i686
Webserver software & version (if known)Apache 2.2.17
PHP Version5.3.5

Users monitoring this issue

dodev

Activities

dodev

dodev

2011-04-05 19:19

reporter   ~14679

I attached a solution to the problem. I'm a new guy so sorry if I spammed or something :)

user13194

2011-04-06 09:00

  ~14682

Attached a patch to modify config-defaults.

DenisChenu

DenisChenu

2011-04-06 13:44

developer   ~14691

I think it's a good idea !

Great thanks to us .

:)

DenisChenu

DenisChenu

2011-04-06 13:59

developer   ~14693

Revision 9971

c_schmitz

c_schmitz

2011-04-11 11:30

administrator   ~14749

1.91RC6 released.

Issue History

Date Modified Username Field Change
2011-04-05 19:17 dodev New Issue
2011-04-05 19:18 dodev File Added: fix_img_upload.diff
2011-04-05 19:19 dodev Note Added: 14679
2011-04-05 19:20 dodev Issue Monitored: dodev
2011-04-05 22:58 user13194 File Added: config-defaults-patch
2011-04-06 09:00 user13194 Note Added: 14682
2011-04-06 13:44 DenisChenu Note Added: 14691
2011-04-06 13:44 DenisChenu Assigned To => DenisChenu
2011-04-06 13:44 DenisChenu Status new => assigned
2011-04-06 13:59 DenisChenu Note Added: 14693
2011-04-06 13:59 DenisChenu Status assigned => resolved
2011-04-06 13:59 DenisChenu Fixed in Version => 1.91RC6
2011-04-06 13:59 DenisChenu Resolution open => fixed
2011-04-11 11:30 c_schmitz Note Added: 14749
2011-04-11 11:30 c_schmitz Status resolved => closed
2015-12-11 14:40 c_schmitz Category Templates => Theme editor
2021-08-04 03:14 guest Bug heat 8 => 10