Help for this page

Select Code to Download


  1. or download this
    my $fh = $c->req->upload('original')->fh;
    $self->form->item->original($fh);
    $self->form->item->update;
    # The DBIx::Class row object comes from FormHandler,
    # but thats not important here
    
  2. or download this
    my $fh = $c->req->upload('original')->fh;
    binmode $fh;
    ...
    $self->form->item->thumb_pfad($thumb);
    $self->form->item->original($fh);
    $self->form->item->update;
    
  3. or download this
    $img->write(file => 'a.jpg');
    $medium->write(file => 'b.jpg');
    ...
    $fhm = new IO::File "> b.jpg";
    $fht = new IO::File "> c.jpg";
    # Then use these filehandles...