new action class to handle deserializing multi-part HTTP request data
[catagits/Catalyst-Action-REST.git] / lib / Catalyst / Controller / REST.pm
index 89c31cf..defe764 100644 (file)
@@ -2,7 +2,7 @@ package Catalyst::Controller::REST;
 use Moose;
 use namespace::autoclean;
 
-our $VERSION = '0.90';
+our $VERSION = '0.91';
 $VERSION = eval $VERSION;
 
 =head1 NAME
@@ -38,7 +38,7 @@ Catalyst::Controller::REST - A RESTful controller
     sub thing_PUT {
         my ( $self, $c ) = @_;
 
-        $radiohead = $req->data->{radiohead};
+        $radiohead = $c->req->data->{radiohead};
         
         $self->status_created(
             $c,
@@ -594,6 +594,10 @@ action classes:
 
   sub serialize : ActionClass('Serialize') {}
 
+If you need to deserialize multipart requests (i.e. REST data in
+one part and file uploads in others) you can do so by using the
+L<Catalyst::Action::DeserializeMultiPart> action class.
+
 =back
 
 =head1 A MILD WARNING