Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: Re: security issues for allowing images to be uploaded to the server (how well File::MMagic works)

by markjugg (Curate)
on May 05, 2003 at 20:35 UTC ( [id://255750]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: security issues for allowing images to be uploaded to the server (Data::FormValidator helps)
in thread security issues for allowing images to be uploaded to the server

Thanks for the pointer. I wasn't aware of File::MMagic, and it seems like a better solution than trusting either the mime type or extension that is sent with the file. Maybe I'll try "Magic" and if that fails, and if that can't be found, try the mime-type, and if we can't try that, check the extension.

Can anyone vouch for the accuracy of File::MMagic for usual web upload cases?

-mark

  • Comment on Re: Re: Re: security issues for allowing images to be uploaded to the server (how well File::MMagic works)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-23 07:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found