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

Actually, that is all of my 'test' program

Line 271 appears to refers to /usr/share/file/magic.mime

I do see that there are some differences in the magic.mime file for systems.

  • Comment on Re^2: Problem with uploaded (http) files with File::MMagic

Replies are listed 'Best First'.
Re^3: Problem with uploaded (http) files with File::MMagic
by roboticus (Chancellor) on Dec 22, 2012 at 16:42 UTC

    Well it's a good thing you didn't show us the contents of line 271 of your /usr/share/file/magic.mime file. Otherwise we might have a clue to the problem. We wouldn't want that, would we?

    On a more serious note, I briefly looked over my local /usr/share/file/magic.mime file and didn't see anything particularly different in the region of line 271, but at line 303 in mine, I have the line:

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

    and at line 640:

    0 regex [Cc]onstant[[:space:]]+[Ss]tory text/x-inform

    Those are the only two lines mentioning 'regex' in my file. Perhaps you could make a copy of your file and remove the regex lines and see if it works?

    ...roboticus

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