Blosxom::Plugin::Request::Upload - Handles file upload requests
# $request is Blosxom::Plugin::Request my $upload = $request->upload( 'field' ); $upload->size; $upload->path; $upload->content_type: $upload->fh; $upload->basename;
Handles file upload requests.
Returns the size of uploaded file in bytes.
Returns a read-only file handle on the temporary file.
my $fh = $upload->fh; # Upgrade to IO::Handle my $handle = $fh->handle; # Upgrade to IO::File handle my $file = $fh->file;
Returns the path to the temporary file where uploaded file is saved.
Returns the content type of the uploaded file.
Returns the original filename in the client.
Returns basename for filename
.
Blosxom::Plugin::Request, Plack::Request::Upload
Ryo Anazawa
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlatistic.