File Coverage

blib/lib/HTML/FormHandler/Field/File.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package HTML::FormHandler::Field::File;
2             # ABSTRACT: simple file field; does no processing
3             $HTML::FormHandler::Field::File::VERSION = '0.40068';
4 1     1   689 use Moose;
  1         2  
  1         8  
5             extends 'HTML::FormHandler::Field';
6              
7              
8             has '+widget' => ( default => 'Upload' );
9             has '+type_attr' => ( default => 'file' );
10              
11             __PACKAGE__->meta->make_immutable;
12 1     1   6121 use namespace::autoclean;
  1         3  
  1         8  
13             1;
14              
15             __END__
16              
17             =pod
18              
19             =encoding UTF-8
20              
21             =head1 NAME
22              
23             HTML::FormHandler::Field::File - simple file field; does no processing
24              
25             =head1 VERSION
26              
27             version 0.40068
28              
29             =head1 SYNOPSIS
30              
31             This field does nothing and is here mainly for testing purposes. If you use this
32             field you'll have to handle the actual uploaded file yourself.
33              
34             See L<HTML::FormHandler::Field::Upload>
35              
36             =head1 AUTHOR
37              
38             FormHandler Contributors - see HTML::FormHandler
39              
40             =head1 COPYRIGHT AND LICENSE
41              
42             This software is copyright (c) 2017 by Gerda Shank.
43              
44             This is free software; you can redistribute it and/or modify it under
45             the same terms as the Perl 5 programming language system itself.
46              
47             =cut