Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: getting mime type from file content

by arturo (Vicar)
on Nov 30, 2001 at 03:18 UTC ( [id://128496]=note: print w/replies, xml ) Need Help??


in reply to getting mime type from file content

Instead of implementing a potentially expensive and in all likelihood unreliable method of figuring out which is which, why not store the MIME type in the database?

HTH

  • Comment on Re: getting mime type from file content

Replies are listed 'Best First'.
Re: Re: getting mime type from file content
by Anonymous Monk on Nov 30, 2001 at 03:31 UTC
    Shouldn't be expensive. I would be happy to just get the output from the unix file command. That would be enough to create a mime type. The file command is fast enough for me. It's too bad I can't do this with the file command `echo hello | file`

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-25 15:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found