Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: getting mime type from file content

by arturo (Vicar)
on Nov 30, 2001 at 03:18 UTC ( #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? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2023-05-28 15:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?