in reply to uploading a image file

Hi,

first of all, did you have a look at the Apache error log as that is where perl/cgi writes it's errors to? Then you can use CGI::Carp qw(fatalsToBrowser);. CGI::Carp prints your error messages to the browser so that you do not have to search for them in the error log.

That should help you debugging.

Regards,
svenXY