I believe you need to specify an encoding of "multipart/form-data" when you create the form in which the file path is specified. You didn't post the code that contains the form with the file input control, but my guess is that its encoding isn't set to "multipart/form-data." This can be done with the CGI object:
$co->start_form( ..., -enctype=>"multipart/form-data");