package Cookbook::PrintUploads; use Apache::Constants qw(OK); use Apache::Request; use Apache::Util qw(escape_html); use strict; sub handler { # Standard stuff, with added options... my $r = Apache::Request->new(shift, POST_MAX => 10 * 1024 * 1024, # in bytes, so 10M DISABLE_UPLOADS => 0); my $status = $r->parse(); # Return an error if we have problems. return $status unless $status == OK; $r->send_http_header('text/html'); $r->print("
\n"); $r->print("