I got the solution.
It was the issue of CGI module version. Embperl uses CGI
module internally to process forms encoded with multipart/form-data. you can retrieve the filename (local filename, as it was on the browser side) and the information provided by the CGI.pm uploadInfo
function. The problem was fixed by upgrading CGI version to 3.37.