in reply to Problems uploading file

I agree with Grygonos
your code syntax appears correct. I would use
CGI::Carp qw(fatalsToBrowser);
and create a directory with the corrent permissions to test writing a file to.