The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

OpenPlugin::Upload - Handle file uploads

SYNOPSIS

 my $OP = OpenPlugin->new();

 my @uploads = $OP->upload->get_incoming()

 my $upload = $OP->upload->get_incoming( $name );

METHODS

get_incoming( [ $name ] )

get( [ $name ] )

With no arguments, this returns a list of filenames mapping to the files uploaded by the client. If you pass in $name then you get a hashref containing the keys:

  • name

    The name given in the upload field.

  • type

    The content-type of the file.

  • size

    The size of the file.

  • filehandle

    The file handle of the file.

  • filename

    The real name of the file being uploaded.

set_incoming( \%upload )

Associates the OpenPlugin::Upload %upload hash with $upload-{ name }>.

See get_incoming for a list of valid parameters this function accepts.

TO DO

See the TO DO section of the <OpenPlugin::Request> plugin.

BUGS

None known.

SEE ALSO

See the individual driver documentation for settings and parameters specific to that driver.

COPYRIGHT

Copyright (c) 2001-2003 Eric Andreychek. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHORS

Eric Andreychek <eric@openthought.net>