View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|16293||Bug reports||Survey taking||public||2020-05-18 17:23||2020-09-17 08:43|
|Summary||16293: Question Type: File Upload attached file is too big, no error message -> internal server error|
If the attached file is bigger than expected, the application will crash and it will raise an internal server error, see the big below.
|Steps To Reproduce|
|Tags||No tags attached.|
|Complete LimeSurvey version number (& build)||irrelevant|
|I will donate to the project if issue is resolved||No|
|Database & DB-Version||irrelevant|
|Server OS (if known)|
|Webserver software & version (if known)|
sample1.heic (293,608 bytes)
Can I ask you for a dump of your php info?
I believe that your file was bigger than the post_max_size.
Also, at last, the file you uploaded on this ticket "sample1.heic" is smaller than 2M
Added a validation for empty $_POST and $_FILES, which is normally the case when post_max_size is exceeded. Without the validation, when post_max_size was exceeded, an "invalid extension" error was thrown or an HTTP 500 error (depending on debug mode).
Tested the issue before pulling the PR, Issue exist. Tested the issue after pulling the PR, I still get the error even after clearing cache.
The 500 error appears when uploading just the .heic file.
Why the error happens on .heic files?
Also the message shown is an advance message as
I tested the issue happens only with the heic file
This could be interesting to bring to the picture:
Ok, not sure what is the current status of this one. I see in github that there are some issues with certain file extensions. It's pretty rare to have .heic files uploaded by users since Apple devices' photos are stored as .jpeg.
It is not a bug.
If not, a workaround is to add heic as a custom extension.
The feature in pulll request is : allow to upload any file, now and in future.
To upload a new file type:
|2020-05-18 17:23||JHoeck||New Issue|
|2020-05-18 17:23||JHoeck||Status||new => assigned|
|2020-05-18 17:23||JHoeck||Assigned To||=> cdorin|
|2020-05-18 17:23||JHoeck||File Added: fileupload_size_to_big_error.PNG|
|2020-05-18 17:23||JHoeck||File Added: sample1.heic|
|2020-05-18 17:24||cdorin||Priority||none => high|
|2020-05-18 17:24||cdorin||Status||assigned => confirmed|
|2020-07-24 18:29||gabrieljenik||Note Added: 59084|
|2020-07-24 18:33||gabrieljenik||Note Edited: 59084||View Revisions|
|2020-07-24 18:34||gabrieljenik||Note Edited: 59084||View Revisions|
|2020-07-28 21:33||gabrieljenik||Note Added: 59138|
||Note Added: 59204|
||File Added: 16293_Fileupload_MaxSize.png|
|2020-08-11 21:55||gabrieljenik||Note Added: 59414|
||Note Added: 59556|
|2020-08-20 15:50||gabrieljenik||Note Added: 59560|
|2020-09-15 17:56||cdorin||Note Added: 59836|
|2020-09-15 17:56||cdorin||Assigned To||cdorin =>|
|2020-09-15 17:56||cdorin||Status||confirmed => feedback|
|2020-09-16 17:36||gabrieljenik||Note Added: 59850|
|2020-09-17 08:43||DenisChenu||Note Added: 59858|