| Froody documentation | Contained in the Froody distribution. |
Froody::Upload - wrapper class for uploaded data in Froody
# used internally
This module represents uploads
These are get/set accessors on the instance.
None known.
Please report any bugs you find via the CPAN RT system. http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Froody
Copyright Fotango 2005. All rights reserved.
Please see the main Froody documentation for details of who has worked on this project.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Froody, Froody::Request::Apache, Froody::Request::CGI, Froody::XML
| Froody documentation | Contained in the Froody distribution. |
package Froody::Upload; use strict; use warnings; use base 'Froody::Base'; __PACKAGE__->mk_accessors(qw( fh filename client_filename mime_type ));
sub from_file { my $class = shift; my $filename = shift; open my $fh, $filename or die "Can't open $filename: $!"; return $class->new->fh($fh)->filename($filename); }
1;