WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Uploading non-standard mime types (1 post)

  1. distobj
    Member
    Posted 5 years ago #

    Hi.

    I want to support the upload of a new standardized audio format (AMR), and after some initial looking around, noticed that functions.php contains a function called wp_check_filetype that seems to validate the type based on the file extension. So great, I thought; I just need to add "'amr' => 'audio/amr'" to the list, and that should fix it. Only that still doesn't work - I continue to get the "security" alert when I try to upload it, despite the file name having the amr extension.

    There must be something obvious I'm missing. Any idea what it might be?

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic