View Issue Details

IDProjectCategoryView StatusLast Update
15946Bug reportsSurvey takingpublic2020-04-17 09:38
Reporterlfanfoni Assigned To 
Status confirmedResolutionopen 
Product Version3.22.7 
Summary15946: File upload question: cannot select csv file
DescriptionWhen you define a "file upload" question allowing only csv file (upload1.png), the selection of a csv file returns an error (upload2.png).
If you add "txt" extension at that question (upload3.png), you can correctly select a csv file (upload4.png)
TagsNo tags attached.
Complete LimeSurvey version number (& build)3.22.7+200225
I will donate to the project if issue is resolvedNo
Database & DB-VersionMariaDb
Server OS (if known)
Webserver software & version (if known)
PHP Version7.3.13




2020-03-03 16:29


upload1.PNG (6,817 bytes)   
upload1.PNG (6,817 bytes)   
upload2.PNG (8,054 bytes)   
upload2.PNG (8,054 bytes)   
upload3.PNG (7,287 bytes)   
upload3.PNG (7,287 bytes)   
upload4.PNG (14,709 bytes)   
upload4.PNG (14,709 bytes)   


2020-03-04 14:47

manager   ~56297

Hmm, CSV is after all a text file: . Don't think this needs to be fixed + the workaround is just adding the txt in the corresponding question attribute.


2020-03-04 15:10

reporter   ~56298

I have cheched that when the extension isn't known (by php.ini?), the application consider the extension as text/plain, and you cannot select even if considered as allowed. The only way for unknown extension is to add the txt extension.
Yes: csv is a text file, but I tested with ".gpkg" and others, and the behaviour is the same.


2020-04-17 09:38

developer   ~57210

Maybe file upload need 2 params (or more) about allowed ?

Complex since it's a potential security issue .....

Issue History

Date Modified Username Field Change
2020-03-03 16:29 lfanfoni New Issue
2020-03-03 16:29 lfanfoni File Added: upload1.PNG
2020-03-03 16:29 lfanfoni File Added: upload2.PNG
2020-03-03 16:29 lfanfoni File Added: upload3.PNG
2020-03-03 16:29 lfanfoni File Added: upload4.PNG
2020-03-04 14:47 cdorin Note Added: 56297
2020-03-04 14:48 cdorin Assigned To => cdorin
2020-03-04 14:48 cdorin Status new => feedback
2020-03-04 15:10 lfanfoni Note Added: 56298
2020-03-04 15:10 lfanfoni Status feedback => assigned
2020-04-01 17:28 cdorin Assigned To cdorin =>
2020-04-01 17:28 cdorin Priority none => low
2020-04-01 17:28 cdorin Status assigned => confirmed
2020-04-17 09:38 DenisChenu Note Added: 57210