in reply to Problem with uploaded (http) files with File::MMagic

Sorry about not putting the cotents of usr/share/file/magic.mime at 271

line 271 in that file had the following:

0  regex       BEGIN[[:space:]]*[{]    application/x-awk

As suggested (by roboticus), I took it out. I did not get the error, but I got the mime type as

application/octet-stream

instead of audio/mpeg

I am thinking of going another way of finding the mime type. Changing system files to get it to work may not always work.

Replies are listed 'Best First'.
Re^2: Problem with uploaded (http) files with File::MMagic
by roboticus (Chancellor) on Dec 24, 2012 at 15:55 UTC

    You might try inserting the audio/mpeg line(s) from the magic.mime file that works into the magic.mime file that doesn't.

    ...roboticus

    When your only tool is a hammer, all problems look like your thumb.