Prancer::Request::Upload
Uploads come from the Prancer::Request object passed to your handler. They can be used like this:
# in your HTML <form method="POST" enctype="multipart/form-data"> <input type="file" name="foobar" /> </form> # in the Prancer handler my $upload = $request->upload("foo");
Returns the size of uploaded file.
Returns the path to the temporary file where uploaded file is saved.
Returns the content type of the uploaded file.
Returns the original filename in the client.
To install Prancer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Prancer
CPAN shell
perl -MCPAN -e shell install Prancer
For more information on module installation, please visit the detailed CPAN module installation guide.