Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^3: Problem with uploaded (http) files with File::MMagic

by roboticus (Chancellor)
on Dec 22, 2012 at 16:42 UTC ( #1010029=note: print w/ replies, xml ) Need Help??

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

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?


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

Comment on Re^3: Problem with uploaded (http) files with File::MMagic
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1010029]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2016-02-07 22:08 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (261 votes), past polls