View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
15624 | Bug reports | Data Entry (non public) | public | 2019-11-26 18:48 | 2020-12-23 17:42 |
Reporter | dariocosta | Assigned To | |||
Priority | none | Severity | crash | ||
Status | closed | Resolution | fixed | ||
Product Version | 3.20.x | ||||
Summary | 15624: File Upload not working for iOS 13.2 | ||||
Description | When you try to upload a picture from the photo library or from camera, the form give you error, it seems like it doesn't recognise the mime type. | ||||
Steps To Reproduce | Add upload file question to your survey and access it with iOS device. | ||||
Additional Information | Versione di LimeSurvey | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 18 | ||||
Complete LimeSurvey version number (& build) | Versione 3.20.2+191119 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Safari iOS | ||||
Database type & version | mysqlnd 5.0.12-dev - 20150407 | ||||
Server OS (if known) | |||||
Webserver software & version (if known) | |||||
PHP Version | 7.2.14 | ||||
related to | 15237 | closed | DenisChenu | I can´t Upload 3gpp, amr, aac audio files using File Upload Question |
child of | 14708 | closed | DenisChenu | Upload files question type does not actually check file type |
I cannot reproduce this error on iOS 12.4.3 safari/Chrome browser |
|
@dariocosta, have you also tried the free hosting on limesurvey? Does it work there? If yes, it's a server configuration issue, most probably a permission system problem. |
|
Thanks for your reply. |
|
can you select the file? Is the file format correct? does the modal display some kind of preview when you do that? Is the upload stored in the response table or you remain stuck in file upload modal? |
|
|
|
When you click on select file, you are prompted to select the file. The photo library opens and you can select the image correctly, but when it comes back to the form, you receive this error and you remain stuck in this file upload modal. |
|
@dariocosta , does the issue still exist? |
|
Yes, it is. Do you have news? |
|
@cdorin: I can reproduce this issue with LS 3.21 and iOS 13.4.1. When running a survey with a file upload question you can't pick an image from local storage. See also https://www.limesurvey.org/forum/can-i-do-this-with-limesurvey/113379-heic-support-file-upload. |
|
Allowing "heic" still leads to "Sorry, only .... files can be uploaded" error. So as stated at the bug tracker, probably some MIME type issue. |
|
With a know mimetype : you must have it in message. Maybe extension is not set ? https://github.com/LimeSurvey/LimeSurvey/blob/ed3dee4fba62968d4d4967b749a1eee1b02366a5/application/controllers/UploaderController.php#L179 |
|
Fixed in bug/15624-file-upload-not-working-ios-13-2 |
|
@JHoeck : is it fixed?? In which release? |
|
the fix is in the respective branch on github. The next release from Monday will contain it. |
|
Hello @dariocosta, could you please checkout this branch: bug/15624-file-upload-not-working-ios-13-2 ? |
|
Hello @cdorin , |
|
When add jpg : it's bet to add jpe and jpeg extension too … |
|
@DenisChenu do you mean in limesurvey code or in question editor form? |
|
question editor form :) https://manual.limesurvey.org/Question_type_-_File_upload#Allowed_file_types_.28allowed_filetypes.29
Maybe we can improve to update jpg to jpe+jpeg , or to have some 'dropdpown' selector like
But this need analyses and developed before |
|
@DenisChenu Sorry... but I modified the default set [ png, gif, doc, odt, jpg, pdf, png, heic ] to [ png, gif, doc, odt, jpg, jpe, jpeg, pdf, png, heic ], saved the survey and re-enabled it, but when I try to upload the image, a popup appear "IMPOSSIBILE VERIFICARE L'ESTENSIONE DI QUESTO TIPO DI FILE", unable to verify extension of this file. |
|
@Mazi, can you please double check the fix provided by @JHoeck? Branch: bug/15624-file-upload-not-working-ios-13-2 |
|
@cdorin, sorry, currently I can't help with this. Once the kindergarten is opened again and I do not need to combine home office + home schooling + entertaining our young daughter, I should have sufficient time to test such things. |
|
Ok, that sounds ... extremely busy ^^ . Asked JEssica to double check and see if we can find any other issue in LS3. Seems in LS4 is fixed. |
|
Does anyone (except Dorin) have time to test this? You have to checkout the branch bug/15624-file-upload-not-working-ios-13-2. |
|
You can find the filetype here: https://filesamples.com/formats/heic |
|
I check hacking a 3.X :
receive « Désolé, les fichiers du type application/octet-stream (extension bin) ne sont pas autorisés.» Then test on my local Fedora 31 / PHP Version 7.3.17 |
|
No fix is applied to LS3 at the moment, only to the branch listed above by me. |
|
To fix it in master (with PHP 7.3 and a updated
in https://github.com/LimeSurvey/LimeSurvey/blob/master/framework/utils/fileExtensions.php And set extension to heic,heif (the heic file return heif for me …) |
|
Hacked version … |
|
You also need to add a new mime type, " Sorry, file type application/octet-stream (extension : bin) is not allowed!". We'll include this in next sprint on Monday again. |
|
This one is for older magic.mime Maybe we need to allow deactivate filetype ? In config;php ? |
|
@ollehar :
With an outdated magic.mime If it's up to date : « Sorry, unable to check extension of this file type image/heif.» |
|
Jessica's fix is good for LS4: Since we need to release, I created a separate bug for it: 16289. |
|
So the pr by denis is not working. The text for the allowed files is not updated (no heif or heic) and also i tried to upload a picture (.heic) file, its not working. So WIP for LS3. |
|
@JHoceck : what exact sentence ? It work for LS3 with an updated file config (current default are doc+pdf + web image) + up to date ùagic.mgc file. I can sed you , but more tha 5 MO |
|
|
|
Yes : ypou need to manually update https://manual.limesurvey.org/Question_type_-_File_upload#Allowed_file_types_.28allowed_filetypes.29 I don't think it's a good idea to update it in 3.X LTS version |
|
Fixed in Release 3.22.16+200519 |
|
I reopened it - not sure if it is fixed properly. Needs to be double checked |
|
I've just tested the LS4 (issue 16289) and the problem is not fixed... |
|
@dariocosta can you please check (3.X) here : https://demo.sondages.pro/index.php/186164 |
|
@DenisChenu sorry, same problem |
|
@dariocosta thank you for testing. can you please edit the bug report and add an idiot-safe description of how you tested the bug? right now I think we're all testing in different ways. Please use the form:
etc Thank you. |
|
No information about image format ????? |
|
@ollehar sorry, but I'm not able to edit the bug report, I have no edit button.
That's all... |
|
Just for info, right now my iPhone has firmware 13.4.1 |
|
To upload a picture from iphone library, I needed to add jpeg as well. Heic is/was not necessary. Everything runs perfectly on master (updated via CU) with my apple device (firmware: 13.5). |
|
@dariocosta, can you upload files here:
Allowed file types: png, gif, doc, odt, jpg, pdf, png, jpeg |
|
Sorry @cdorin but these survey are not online... do you have removed them? |
|
You must fix the url & amp ; to & only :) Check |
|
Perfect! It's working. |
|
It is the latest (4.2.5 via CU) Please double check allowed file types. Mines are: png, gif, doc, odt, jpg, pdf, png, jpeg . Perhaps jpeg needs to be added in both versions -> I will come back with a small comment if that is the case (need to double check). |
|
@cdorin, since this issue was reported for LS 3.x, I assume it will also be fixed there? |
|
@cdorin I really don't understand :( http://limesurvey.demobbl.it/NewRelease/index.php?r=survey/index&sid=668183&lang=it Probably I'm doing something wrong... |
|
@cdorin, what is the expected time frame for a fix? |
|
Wasn't this already fixed? oO |
|
It is fixed on most of the installations (LS3 and LS4). But I didn't have proper time to check why @dariocosta's installation is not working. I will try later with different versions of php (unfortunately, can't test on windows server) |
|
We have successfully tested this at the latest LS 3.22.x version. |
|
@cdorin I really don't know what happens to my install.... today I completely cleaned up it, I've just hold the config folder and copied latest files ( 4.2.8+200608 ), recreate a survey ( http://limesurvey.demobbl.it/NewRelease/index.php?r=survey/index&sid=772818&lang=it ) but no guess... unable to verify file extension. |
|
@dariocosta, any news about this issues? Was one of the later updates solving the problem? |
|
@cdorin sorry, but after that test I had no time to do other tests. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2019-11-26 18:48 | dariocosta | New Issue | |
2019-11-27 15:45 | galads | Note Added: 54824 | |
2019-11-27 15:46 | cdorin | Note Added: 54825 | |
2019-11-27 16:45 | dariocosta | File Added: prova.png | |
2019-11-27 16:45 | dariocosta | Note Added: 54833 | |
2019-11-27 17:07 | cdorin | Note Added: 54834 | |
2019-11-27 17:08 | cdorin | Note Added: 54835 | |
2019-11-27 17:11 | dariocosta | Note Added: 54836 | |
2020-01-10 15:43 | cdorin | Note Added: 55195 | |
2020-01-10 15:44 | cdorin | Assigned To | => cdorin |
2020-01-10 15:44 | cdorin | Status | new => feedback |
2020-01-10 17:49 | dariocosta | Note Added: 55209 | |
2020-01-10 17:49 | dariocosta | Status | feedback => assigned |
2020-04-14 17:17 | Mazi | Note Added: 57125 | |
2020-04-14 17:23 | Mazi | Note Added: 57126 | |
2020-04-14 17:25 | cdorin | Zoho Sprints | => |Yes| |
2020-04-14 17:25 |
|
Zoho Sprints ID | => 14469000000039001 |
2020-04-15 09:28 | DenisChenu | Note Added: 57128 | |
2020-04-21 09:05 | JHoeck | Assigned To | cdorin => JHoeck |
2020-05-04 13:19 | JHoeck | Status | assigned => confirmed |
2020-05-05 11:23 | JHoeck | Status | confirmed => resolved |
2020-05-05 11:23 | JHoeck | Resolution | open => fixed |
2020-05-05 11:23 | JHoeck | Note Added: 57531 | |
2020-05-07 17:30 | dariocosta | Note Added: 57619 | |
2020-05-07 18:01 | cdorin | Note Added: 57621 | |
2020-05-13 17:48 | cdorin | Note Added: 57761 | |
2020-05-14 11:31 | dariocosta | Note Added: 57775 | |
2020-05-14 11:31 | dariocosta | File Added: image0.png | |
2020-05-14 11:38 | DenisChenu | Note Added: 57776 | |
2020-05-14 11:42 | dariocosta | Note Added: 57777 | |
2020-05-14 11:47 | DenisChenu | Note Added: 57778 | |
2020-05-14 12:05 | dariocosta | Note Added: 57781 | |
2020-05-14 17:45 | cdorin | Note Added: 57808 | |
2020-05-14 18:02 | Mazi | Note Added: 57811 | |
2020-05-14 18:13 | cdorin | Note Added: 57812 | |
2020-05-15 15:45 | ollehar | Status | resolved => ready for testing |
2020-05-15 15:45 | ollehar | Note Added: 57841 | |
2020-05-15 15:45 | ollehar | Note Edited: 57841 | |
2020-05-15 15:50 | ollehar | Note Added: 57842 | |
2020-05-15 16:24 | DenisChenu | Note Added: 57843 | |
2020-05-15 16:24 | DenisChenu | File Added: Capture d’écran du 2020-05-15 16-21-53.png | |
2020-05-15 16:24 | DenisChenu | Note Edited: 57843 | |
2020-05-15 16:25 | ollehar | Note Added: 57844 | |
2020-05-15 16:31 | DenisChenu | Note Added: 57845 | |
2020-05-15 16:33 | DenisChenu | Note Added: 57846 | |
2020-05-15 16:36 | ollehar | Note Added: 57847 | |
2020-05-15 16:52 | DenisChenu | Note Added: 57848 | |
2020-05-15 16:53 | DenisChenu | Note Added: 57849 | |
2020-05-15 17:12 | DenisChenu | Note Added: 57850 | |
2020-05-15 17:14 | DenisChenu | Relationship added | related to 15237 |
2020-05-15 17:15 | DenisChenu | Relationship added | child of 14708 |
2020-05-18 13:23 | cdorin | Status | ready for testing => confirmed |
2020-05-18 13:23 | cdorin | Zoho Sprints | Yes => |Yes| |
2020-05-18 13:23 | cdorin | Note Added: 57875 | |
2020-05-18 13:45 | JHoeck | Note Added: 57877 | |
2020-05-18 14:16 | DenisChenu | Note Added: 57879 | |
2020-05-18 17:09 | JHoeck | Note Added: 57888 | |
2020-05-18 17:09 | JHoeck | File Added: 123134.PNG | |
2020-05-18 17:37 | DenisChenu | Note Added: 57890 | |
2020-05-19 11:49 | lime_release_bot | Zoho Sprints | Yes => |Yes| |
2020-05-19 11:49 | lime_release_bot | Note Added: 57911 | |
2020-05-19 11:49 | lime_release_bot | Status | confirmed => closed |
2020-05-19 11:51 | cdorin | Status | closed => confirmed |
2020-05-19 11:51 | cdorin | Zoho Sprints | Yes => |Yes| |
2020-05-19 11:51 | cdorin | Note Added: 57912 | |
2020-05-19 13:50 | dariocosta | Note Added: 57922 | |
2020-05-19 13:51 | DenisChenu | Note Added: 57923 | |
2020-05-19 13:56 | dariocosta | Note Added: 57924 | |
2020-05-19 13:56 | dariocosta | File Added: INBOX%3E142861.jpg | |
2020-05-19 14:21 | ollehar | Note Added: 57925 | |
2020-05-19 14:21 | ollehar | Note Edited: 57925 | |
2020-05-19 14:21 | ollehar | Note Edited: 57925 | |
2020-05-19 14:33 | dariocosta | Issue Monitored: dariocosta | |
2020-05-19 14:33 | dariocosta | Issue End Monitor: dariocosta | |
2020-05-19 14:33 | dariocosta | Issue Monitored: dariocosta | |
2020-05-19 14:38 | DenisChenu | Note Added: 57927 | |
2020-05-19 14:40 | dariocosta | Note Added: 57929 | |
2020-05-19 14:41 | dariocosta | Note Added: 57930 | |
2020-05-26 13:01 | cdorin | Note Added: 58033 | |
2020-05-26 13:05 | cdorin | Note Added: 58034 | |
2020-05-26 13:05 | cdorin | Note Edited: 58034 | |
2020-05-26 13:06 | cdorin | Note Edited: 58034 | |
2020-05-26 13:11 | cdorin | Note Edited: 58034 | |
2020-05-26 16:04 | dariocosta | Note Added: 58045 | |
2020-05-26 16:24 | DenisChenu | Note Added: 58047 | |
2020-05-26 16:24 | DenisChenu | Assigned To | JHoeck => cdorin |
2020-05-26 16:24 | DenisChenu | Status | confirmed => feedback |
2020-05-27 15:53 | dariocosta | Note Added: 58057 | |
2020-05-27 15:53 | dariocosta | Status | feedback => assigned |
2020-05-27 15:56 | cdorin | Note Added: 58058 | |
2020-05-27 17:08 | Mazi | Note Added: 58059 | |
2020-05-28 10:17 | dariocosta | Note Added: 58068 | |
2020-06-09 13:56 | Mazi | Note Added: 58224 | |
2020-06-09 14:00 | ollehar | Note Added: 58225 | |
2020-06-09 14:14 | cdorin | Note Added: 58226 | |
2020-06-09 14:14 | cdorin | Note Edited: 58226 | |
2020-06-10 17:26 | Mazi | Note Added: 58241 | |
2020-06-15 16:20 | dariocosta | Note Added: 58291 | |
2020-07-09 16:36 | cdorin | Assigned To | cdorin => |
2020-07-09 16:36 | cdorin | Status | assigned => feedback |
2020-07-09 16:36 | cdorin | Note Added: 58865 | |
2020-07-09 21:05 | dariocosta | Note Added: 58882 | |
2020-07-09 21:05 | dariocosta | Status | feedback => new |
2020-12-23 17:42 | cdorin | Status | new => closed |
2021-08-02 16:08 | guest | Bug heat | 16 => 18 |