NAME
Catalyst::Request::Upload - Catalyst Request Upload Class
SYNOPSIS
$upload->copy_to
$upload->fh
$upload->filename;
$upload->headers;
$upload->link_to;
$upload->size;
$upload->slurp;
$upload->tempname;
$upload->type;
See also Catalyst.
DESCRIPTION
This is the Catalyst Request Upload class, which provides a set of accessors to the upload data.
METHODS
- $upload->new
-
simple constructor.
- $upload->copy_to
-
Copies tempname using
File::Copy
. Returns true for success, false otherwise.$upload->copy_to('/path/to/target');
- $upload->fh
-
Opens tempname and returns a
IO::File
handle. - $upload->filename
-
Contains client supplied filename.
- $upload->headers
-
Returns a
HTTP::Headers
object. - $upload->link_to
-
Creates a hard link to the tempname. Returns true for success, false otherwise.
$upload->link_to('/path/to/target');
- $upload->size
-
Contains size of the file in bytes.
- $upload->slurp
-
Returns a scalar containing contents of tempname.
- $upload->tempname
-
Contains path to the temporary spool file.
- $upload->type
-
Contains client supplied Content-Type.
AUTHOR
Sebastian Riedel, sri@cpan.org
Christian Hansen, ch@ngmedia.com
COPYRIGHT
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.