this was copied from somebody else, but I did not keep the reference ...
while atempting to upload files in html::mason the response is only "End of file found":
solution: add this to the vhost configuration file
PerlSetVar MasonArgsMethod mod_perl
explanation: it seems HTML::Mason is using CGI to deal with post/get by default, and when CGI is done with post/get, there is nothing left for apreq to work with; the line tells HTML::Mason to use mod_perl to deal with the args