Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by roboticus (Canon)
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?

...roboticus

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (11)
As of 2014-12-22 18:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (126 votes), past polls