X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FRequest%2FUpload.pm;h=4d46417f4871485cd86aa5ff60e2b07e471eec20;hp=02848b27da93b51be3c0d5ad958227d2432d39ce;hb=0fc2d522eec43202c21e9f0062e43f10db4d9008;hpb=e5ecd5bc38bac3e2fcfaf643ea2a4c6ab46d7e57 diff --git a/lib/Catalyst/Request/Upload.pm b/lib/Catalyst/Request/Upload.pm index 02848b2..4d46417 100644 --- a/lib/Catalyst/Request/Upload.pm +++ b/lib/Catalyst/Request/Upload.pm @@ -1,5 +1,6 @@ package Catalyst::Request::Upload; +use Class::C3; use Moose; use Catalyst::Exception; @@ -7,12 +8,12 @@ use File::Copy (); use IO::File (); use File::Spec::Unix; -has filename => (is => 'rw'); -has headers => (is => 'rw'); -has size => (is => 'rw'); -has tempname => (is => 'rw'); -has type => (is => 'rw'); -has basename => (is => 'rw'); +has filename => (is => 'rw'); +has headers => (is => 'rw'); +has size => (is => 'rw'); +has tempname => (is => 'rw'); +has type => (is => 'rw'); +has basename => (is => 'rw'); has fh => ( is => 'rw', @@ -101,7 +102,7 @@ Returns an L object for the request. =head2 $upload->link_to -Creates a hard link to the temporary file. Returns true for success, +Creates a hard link to the temporary file. Returns true for success, false for failure. $upload->link_to('/path/to/target');