How can I get the name of the uploaded file in HTML::Mason?

Posted by marghi on Stack Overflow See other posts from Stack Overflow or by marghi
Published on 2010-03-13T12:25:15Z Indexed on 2010/03/17 3:11 UTC
Read the original article Hit count: 377

Filed under:
|
|

Recently I've been trying to get some files uploaded on to my server in my HTML::Mason application. All good, no problems there. Apparently Mason returns a filehandle directly in the argument. The problem is that I cannot retrieve the filename from that filehandle in a elegant way. One method of resolving this issue is parsing the filename on the client before sending it to the server and placing the extracted value in a hidden field so that it gets sent upon submit. BUT that is very unsafe!

© Stack Overflow or respective owner

Related posts about perl

Related posts about mason