The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

HTTP::Server::EV::MultipartFile - represents file received by HTTP::Server::EV

FILE PARAMETERS

$file->size or $file->{size}

Filesize in bytes

$file->name or $file->{name}

Filename received in http request

$file->path or $file->{path}

Path to tmp file. You don`t need to use this. Use $file->save() instead

METHODS

$file->fh;

Returns filehandle opened to reading. Dies on error

$file->save($path);

Save received file to $path. Just moves file from tmp dir to $path if possible. Dies on error

$file->del;

Deletes file from tmp directory. Automatically called on DESTROY