http://www.perlmonks.org?node_id=798260


in reply to security: making sure graphics uploaded by users are safe

I use Image::ExifTool for that, it can replace the Image::Size you want to use and has error & warning's for the image files.
Also supports other file formats.
I normally us it to read the file and if there is and error of any sorts it gets deleted.

Run a virus check if you want to, guess it doesn't hurt to be safe.

What did the Pro-Perl programmer say to the Perl noob?
You owe me some hair.
  • Comment on Re: security: making sure graphics uploaded by users are safe