OpenPlugin::Upload - Handle file uploads


OpenPlugin documentation  | view source Contained in the OpenPlugin distribution.

Index


NAME

Top

OpenPlugin::Upload - Handle file uploads

SYNOPSIS

Top

 my $OP = OpenPlugin->new();

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

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

METHODS

Top

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

Top

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

BUGS

Top

None known.

SEE ALSO

Top

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

COPYRIGHT

Top

AUTHORS

Top

Eric Andreychek <eric@openthought.net>


OpenPlugin documentation  | view source Contained in the OpenPlugin distribution.