- SEE ALSO
Mojo::Upload - Upload Container
use Mojo::Upload; my $upload = Mojo::Upload->new; print $upload->filename; $upload->move_to('/foo/bar/baz.txt');
Mojo::Upload is a container for uploads.
Mojo::Upload implements the following attributes.
my $asset = $upload->asset; $upload = $upload->asset(Mojo::Asset::File->new);
Asset containing the uploaded data.
my $filename = $upload->filename; $upload = $upload->filename('foo.txt');
Name of the uploaded file.
my $headers = $upload->headers; $upload = $upload->headers(Mojo::Headers->new);
Headers for upload.
my $name = $upload->name; $upload = $upload->name('foo');
Name of the upload.
Move uploaded data to a specific file.
my $size = $upload->size;
Size of upload in bytes.
my $string = $upload->slurp;
Read all upload data at once.