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

NAME

IWL::Upload - a file upload widget

INHERITANCE

IWL::Error -> IWL::Object -> IWL::Widget -> IWL::Form -> IWL::Upload

DESCRIPTION

The Upload widget is a form widget, with it's own file selector.

CONSTRUCTOR

IWL::Upload->new ([%ARGS])

Where %ARGS is an optional hash parameter with with key-values.

action

The form action

showTooltip

True, if an information tooltip should be shown

SIGNALS

upload

Fires when a file has been uploaded

METHODS

setAccept (EXPR)

Sets the accepted mime types. Browsers which support this can use it to filter out the files that a user can choose.

Parameters: EXPR - the expression which is used for filtering

getAccept

Returns the accept filter

setLabel (TEXT)

Sets the label of the button

Parameters: TEXT - the text for the label

getLabel

Returns the label of the button

printMessage (MESSAGE, DATA)

Prints a message, so that it can be displayed in the upload tooltip

Parameters: MESSAGE - the message to be displayed when a file is uploaded. DATA - the data to be passed to a listener for the upload signal.

This method is a class method! You do not need to instantiate an object in order to call it.

LICENCE AND COPYRIGHT

Copyright (c) 2006-2007 Viktor Kojouharov. All rights reserved.

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

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.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 231:

You forgot a '=back' before '=head1'