Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Unable to Upload iPhone .m4a Audio Files (MIME Type Issue – audio/x-m4a)

More
1 day 20 hours ago #274090 by hellencharless
Hi everyone,I’m currently facing an issue with the File Upload question type in LimeSurvey and would really appreciate some guidance.Environment:
  • LimeSurvey Community Edition: 6.16.13+260316
  • Server: Own hosting
  • PHP: Standard setup (fileinfo enabled, no custom magic settings)
What I’m trying to do:
Allow users (especially iPhone users) to upload recorded audio files.Problem:
Initially,
Code:
.m4a
files were rejected due to the extension not being allowed. After adding
Code:
m4a
as an allowed file type, I now get this error:

“Sorry, unable to check extension of this file type audio/x-m4a.”

Observations:
  • iPhone recordings are uploaded as
    Code:
    .m4a
    but with MIME type
    Code:
    audio/x-m4a
  • Running the
    Code:
    file
    command on the server correctly identifies the file as:
    ISO Media, Apple iTunes ALAC/AAC-LC (.M4A) Audio
  • My
    Code:
    config.php
    does not include a
    Code:
    magic_database
    setting
  • PHP seems to detect MIME types normally in other cases
From what I’ve read, LimeSurvey can sometimes fail if the MIME type is not recognized properly or not included in its validation list . I also noticed similar errors reported when MIME detection fails or is unsupported .Questions:
  1. Is
    Code:
    audio/x-m4a
    officially supported in recent LimeSurvey versions?
  2. Do I need to manually extend the MIME type mapping somewhere (PHP, server, or LimeSurvey config)?
  3. Would updating or replacing the
    Code:
    magic.mime
    / fileinfo database help in this case?
  4. Is there a recommended workaround for iOS uploads specifically?
Any suggestions or pointers would be really helpful.Thanks in advance!

Please Log in to join the conversation.

More
1 day 18 hours ago #274091 by Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose