Hi all!

I have a question about Dancer::Request::Upload.
http://search.cpan.org/~xsawyerx/Dancer-1.3095/lib/Dancer/Request/Upload.pm

Quote: “
tempname
Returns the name of the temporary file the data has been saved to.
This will be in e.g. /tmp, and given a random name, with no file extension..”

This is my code:


post '/upload/:token' => sub {

        return to_dumper(request->upload('file'));

}

This is the result:

$VAR1 = bless( { 'headers' => { 'Content-Type' => 'image/png', 'Content-Disposition' => 'form-data; name="file";
filename="2.png"' }, 'filename' => '2.png', 'tempname' => '/tmp/QBVx5KfQtB.png', 'size' => '33116' }, 'Dancer::Request::Upload' );


Why does 'tempname' have file extension ?