NAME

HTTP::Server::EV::MultipartFile - represents file received by L<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;

Return filehandle opened to reading. Die 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;

Delete file from tmp directory. You don`t need to use this method, HTTP::Server::EV::CGI calls it on all request files on DESTROY