I have been trying out Mojolicious web framework based on perl. And I have try to develop a full application instead of the Lite. The problem I am facing is that I am trying to
(First, you need some HTML form with method="post"
and enctype="multipart/form-data"
, and a input type="file"
with name="upload"
. Just to be sure.)
If there were no errors, $fileuploaded
would be a Mojo::Upload
. Then you could check its size, its headers, you could slurp it or move it, with $fileuploaded->move_to('path/file.ext')
.
Taken from a strange example.