I've been down this road. If wrapping $r->upload() in an eval block
doesn't solve the problem, it's likely that you need to upgrade
libapreq2 to v2.18 (or newer):
https://www.inter-corporate.com/kb/internal-apreq-error.pl
If your Linux distribution doesn't include
I am seeing some very suprising behavior with calling ->upload on a
Apache2::Request object (with use Apache2::Upload). It appears that if
the user did not click and select a file to upload, that is to say left
the field empty, the server stops processing the
perl code and immediately sends