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


in reply to Re^4: Catalyst::Request::Upload inside-out-object weirdness
in thread Catalyst::Request::Upload inside-out-object weirdness

Looks like
$headers->content_type
can return more than one value. Replace it with
scalar($headers->content_type)