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

NAME

Apache::Upload::Slurp - Component to slurp all uploaded file

SYNOPSIS

    use Apache::Upload::Slurp ();
    my $obj = new Apache::Upload::Slurp;
    my $uploads = $obj->uploads;

DESCRIPTION

Apache::Upload::Slurp put all uploaded files via application/x-www-form-urlencoded and their information in an array to be simply process by clients.

METHODS

new

Create a new Apache::Upload::Slurp object and process uploads

    my $obj = new Apache::Upload::Slurp;

uploads

Return an array or an arrayref with an hashref for every file uploaded. The hashref has this structure:

  • data

    The binary stream of the file

  • filename

    The filename from the client point of view

  • size

    The size of the uploaded file

  • name

    The name of the form field that uploaded file.

  • type

    The content type of the uploaded file.

  • other keys

    From the additional header information for the uploaded file

upload(form_name)

Return an hash or hashref (based on contest) with infos for the single upload The hashref has this structure:

  • data

    The binary stream of the file

  • filename

    The filename from the client point of view

  • size

    The size of the uploaded file

  • name

    The name of the form field that uploaded file.

  • type

    The content type of the uploaded file.

  • other keys

    From the additional header information for the uploaded file

LICENSE

Apache::Upload::Slurp - Component to slurp all uploaded file

Copyright (C) 2006 Bruni Emiliano <info AT ebruni DOT it>

This module is free software; you can redistribute it and/or modify it under the terms of either:

a) the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version, or

b) the "Artistic License" which comes with this module.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See either the GNU General Public License or the Artistic License for more details.

You should have received a copy of the Artistic License with this module, in the file ARTISTIC. If not, I'll be glad to provide one.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

AUTHOR

Bruni Emiliano, <info AT ebruni DOT it>

SEE ALSO

Apache::Upload