in reply to Or die killing my script
A couple comments: You may find using CGI.pm built-in "upload" routine easier to use. I do.
You may also be interested in using Data::FormValidator::Upload to solve your problem. It was designed to handle uploading files, especially images on the web. If the module is not of interest, the code might be. :) This link may break, but I hope to get the module onto CPAN once I work out a few kinks.
The module will help to validate the file size, file format, and image dimensions, as well as giving you access to these values that it discovers.
-mark
|
---|