in reply to Catalyst::Request::Upload inside-out-object weirdness
my $headers = HTTP::Headers->new( %{ $upload->{headers} } +); my $u = Catalyst::Request::Upload->new ( size => $upload->{size}, type => $headers->content_type, headers => $headers, tempname => $upload->{tempname}, filename => $upload->{filename}, );
is somehow creating this:
uploads => { SourceFile_1 => bless({ "/tmp/J8OcVSq1Kq" => "filename", "HTTP::Headers=HASH(0x40ec828)" => "temp +name", "aaa.jpg" => undef, "charset=utf-8; Content-Transfer-Encodin +g: binary" => "headers", size => 374205, type => "image/jpeg", }, "Catalyst::Request::Upload"), },
which seems to suggest maybe the problem is with HTTP::Headers...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Catalyst::Request::Upload inside-out-object weirdness
by andye (Curate) on Mar 26, 2010 at 15:57 UTC | |
Re^2: Catalyst::Request::Upload inside-out-object weirdness
by JavaFan (Canon) on Mar 26, 2010 at 16:23 UTC | |
by andye (Curate) on Mar 26, 2010 at 16:41 UTC |