View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
18347Bug reportsSurvey takingpublic2022-09-19 10:55
Reporterventolinmono Assigned To 
PrioritynoneSeverityminor 
Status ready for code reviewResolutionopen 
Summary18347: Unable to check extension of this file type image/svg.
Description

Get this error when trying to upload a SVG on answering a file upload question type. I suspect it has something to do with the fact that the SVG is missing the first <?xml> tag. The SVG is valid according to https://validator.w3.org and can be opened with Inkscape with no problems. I tried uploading other SVG files with no problems and they have this tag.

Steps To Reproduce

Steps to reproduce

Try with two SVGs, one with <?xml version="1.0" encoding="UTF-8" standalone="no"?> in the first line and one withoutttttttttttttt.

Expected result

Both files should upload.

Actual result

File without <?xml> doesn't uploads.

Additional Information

master : https://github.com/LimeSurvey/LimeSurvey/pull/2613

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)5.1
I will donate to the project if issue is resolvedNo
BrowserFirefox 91.13.0esr
Database type & versionMySQL database
Server OS (if known)
Webserver software & version (if known)
PHP VersionPHP 7.4.30

Relationships

related to 18353 ready for code review Unable to upload an xml file 

Users monitoring this issue

User List There are no users monitoring this issue.

Activities

ventolinmono

ventolinmono

2022-09-13 20:22

reporter  

test_with_xml.svg (1,897 bytes)   
test_with_xml.svg (1,897 bytes)   
test_without_xml.svg (1,842 bytes)   
test_without_xml.svg (1,842 bytes)   
DenisChenu

DenisChenu

2022-09-14 08:47

developer   ~71705

Last edited: 2022-09-14 08:50

OK it's a valid SVG file (SVG 1.1 + URL + HTML + MathML 3.0)

But : don't shown on Firefox or Chromium.

You can set your own «magic_file» with config : https://manual.limesurvey.org/Optional_settings#Upload_files

Issue History

Date Modified Username Field Change
2022-09-13 20:22 ventolinmono New Issue
2022-09-13 20:22 ventolinmono File Added: test_with_xml.svg
2022-09-13 20:22 ventolinmono File Added: test_without_xml.svg
2022-09-14 08:47 DenisChenu Note Added: 71705
2022-09-14 08:47 DenisChenu File Added: Capture d’écran du 2022-09-14 08-41-15.png
2022-09-14 08:47 DenisChenu File Added: Capture d’écran du 2022-09-14 08-41-39.png
2022-09-14 08:47 DenisChenu Bug heat 0 => 2
2022-09-14 08:49 DenisChenu Assigned To => DenisChenu
2022-09-14 08:49 DenisChenu Status new => assigned
2022-09-14 08:50 DenisChenu Note Edited: 71705
2022-09-15 12:57 DenisChenu Relationship added related to 18353
2022-09-19 10:54 DenisChenu Assigned To DenisChenu =>
2022-09-19 10:54 DenisChenu Status assigned => ready for testing
2022-09-19 10:55 DenisChenu Additional Information Updated
2022-09-19 10:55 DenisChenu Status ready for testing => ready for code review