if (!$filehandle && $cgi->cgi_error) { # Upload ging schief! die($cgi->cgi_error); }