in reply to Set File Upload Extension With CGI.PM

The closest you will get is using the 'accept' attribute. It takes a comma-separated list of MIME types, and the web browser has to support this attribute to constrain the results to the appropriate types.

print start_multipart_form, filefield(-name => 'upload', -size => 60, -accept => 'image/*',), br, submit(-label => 'Upload File'), end_form;
The only other possibility is that a client-side scripting language or componenet (JavaScript, applet, ActiveX control) will let you access the filetype filter. I don't find that likely, but web browsers do some spectacularly useless things that, occasionally, come in handy.