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

NAME

Catalyst::Request::Upload - Catalyst Request Upload Class

SYNOPSIS

    $upload->copy_to
    $upload->fh
    $upload->filename;
    $upload->link_to;
    $upload->size;
    $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

Constructor. Normally only for engine use.

$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.

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->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.