Name
SPVM::Mojo::Upload - Upload
Description
Mojo::Upload class in SPVM a container for uploaded files.
Usage
use Mojo::Upload;
my $upload = Mojo::Upload->new;
say $upload->filename;
$upload->move_to("/home/sri/foo.txt");
Fields
asset
has asset : rw Mojo::Asset;
Asset containing the uploaded data, usually a Mojo::Asset::File or Mojo::Asset::Memory object.
filename
has filename : rw string;
Name of the uploaded file.
headers
has headers : rw Mojo::Headers;
Headers for upload, usually a Mojo::Headers object.
name
has name : rw string;
Name of the upload.
Class Methods
new
static method new : Mojo::Upload ();
Create a new Mojo::Upload object, and return it.
Instance Methods
move_to
method move_to : void ($to : string);
size
method size : long ();
slurp
method slurp : string ();
See Also
Copyright & License
Copyright (c) 2025 Yuki Kimoto
MIT License