| HTML-FormFu documentation | Contained in the HTML-FormFu distribution. |
HTML::FormFu::Element::File - File upload form field
---
elements:
type: File
name: photo
my $photo = $form->param('photo');
my $blob = $photo->slurp;
File upload form field.
See the documentation relevant to the query_type you're using:
Is a sub-class of, and inherits methods from HTML::FormFu::Element::_Input, HTML::FormFu::Element::_Field, HTML::FormFu::Element
Carl Franks, cfranks@cpan.org
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
| HTML-FormFu documentation | Contained in the HTML-FormFu distribution. |
package HTML::FormFu::Element::File; use Moose; extends 'HTML::FormFu::Element'; with 'HTML::FormFu::Role::Element::Input'; after BUILD => sub { my $self = shift; $self->field_type('file'); $self->form->enctype('multipart/form-data'); return; }; __PACKAGE__->meta->make_immutable; 1; __END__