WordPress.org

Ready to get started?Download WordPress

Forums

.m4a and .htaccess problems (3 posts)

  1. groovitude
    Member
    Posted 8 years ago #

    I put a link on my wordpress for an audio file (.m4a) but when clicked on or right-click downloaded, the content keeps coming out as a .txt file. I tried entering "AddType audio/mp4 .m4a" to the .htaccess file, but that didn't change anything.

    is anybody else having this problem or might have a solution?

  2. James
    Happiness Engineer
    Posted 8 years ago #

    With most hosting providers, modifying the .htaccess file with "AddType" won't work due to security precautions. If you have a cPanel-based host, login to cPanel, select the "MIME Types" pane, and enter "m4a" as the extension and "audio/mp4" as the Mime type. If you don't have a cPanel-based hosting provider, contact your provider and find out how to add that information to your server's MIME Type database.

  3. hedgeland
    Member
    Posted 8 years ago #

    I experimented with this a bit on my webhost server using Cpanel. I don't believe "audio/mp4" is the correct MIME type. After adding this MIME type, I downloaded an .m4a audio file from my site. Firefox appended .mpg to the end of the file because it considered it a mpeg-4 movie, and then my Windows laptop associated the movie file with QT, of course, rather than with iTunes.

    I did some more research and found "audio/x-m4a" to be the correct MIME type. My testing showed this to work correctly. The filename does not get appended with another extension, and the audio file is correctly associated with iTunes. Your mileage may vary.

    Here's my source for the info....

    http://plugindoc.mozdev.org/winmime.html

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags