[jifty-devel] file name and extension of an uploaded file

C.G. LEE yuand2 at gmail.com
Sat Dec 16 19:42:18 EST 2006


I am swimming in the pool, file uploading.

I used the Jifty::Web::Form::Field::Upload for a client to upload a file,
and I got a file handle in my model as below:

sub create{
  my $self = shift;
  my %args = (@_);
  $fh = $args{'upload_file'};

the uploading was good(the file handle worked as I expected). Then how do I
get file name and extension of an uploaded file?

I saw the docs of Jifty::Web::Form::Element and Jifty::Web::Form::Field, but
not yet...

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.bestpractical.com/pipermail/jifty-devel/attachments/20061216/a00fbd2f/attachment.htm

More information about the jifty-devel mailing list