
Mojo::Upload - Upload

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.
asset my $asset = $upload->asset;
$upload = $upload->asset(Mojo::Asset::File->new);
filename my $filename = $upload->filename;
$upload = $upload->filename('foo.txt');
headers my $headers = $upload->headers;
$upload = $upload->headers(Mojo::Headers->new);
name my $name = $upload->name;
$upload = $upload->name('foo');

Mojo::Upload inherits all methods from Mojo::Base and implements the following new ones.
move_to $upload->move_to('/foo/bar/baz.txt');
sizemy $size = $upload->size;
slurpmy $string = $upload->slurp;