$filename = $q->param(‘uploaded_file’);
$type = $q->uploadInfo($filename)->{‘Content-Type’};
unless ($type eq ‘text/html’) {
die “HTML FILES ONLY!”;
}
$filename = $q->param(‘uploaded_file’);
$type = $q->uploadInfo($filename)->{‘Content-Type’};
unless ($type eq ‘text/html’) {
die “HTML FILES ONLY!”;
}