Fixed cookbook
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Manual / Cookbook.pod
index 3295168..5d56a46 100644 (file)
@@ -21,7 +21,7 @@ placing a C<die()> call in the C<end> action.
 If you're tired of removing and adding this all the time, you
 can easily add a condition. For example:
 
-  die "Testing" if $c->param->{dump_info};
+  die "Testing" if $c->params->{dump_info};
 
 =head2 Disable statistics
 
@@ -127,6 +127,7 @@ Controller:
 
             for my $field ( $c->req->upload ) {
 
+                my $upload   = $c->req->upload($field);
                 my $filename = $upload->filename;
                 my $target   = "/tmp/upload/$filename";