HTTP::Server::EV::MultipartFile - represents file received by HTTP::Server::EV
Filesize in bytes
Filename received in http request
Returns filehandle opened to reading. Callback is optional
Save received file to $path. Just moves file from tmp dir to $path if possible. Callback is optional
If callback specified it will always called after IO completion no matter what HTTP::Server::IO implementation used.
If you use HTTP::Server::EV::IO::AIO then only way to know ->save status is specify callback, because ->save call will return immediately and set saving to background. You can`t use ->fh without callback.
If you use HTTP::Server::EV::IO::Blocking then all IO operations will block program. You can use methods withouth a callbacks.
If you use Coro then HTTP::Server::EV::IO::AIO will act as HTTP::Server::EV::IO::Blocking and block current Coro thread if no callback specified, or return immediately and call callback if it specified.