Hi
my $asset = $self->req->content->asset;
my $string=$asset->slurp;
------WebKitFormBoundary2jXzI9WLBRoANocy
Content-Disposition: form-data; name="text"; filename="test.json"
Content-Type: application/octet-stream
{
JSON
}
------WebKitFormBoundary2jXzI9WLBRoANocy
Content-Disposition: form-data; name="filepdf"; filename="test(2).PDF"
Content-Type: application/pdf
%PDF-1.4
...pdf data....
%%EOF
my $pdfdata = $self->param('filepdf');
my $jsondata = $self->param('text');
But i'm wondering it is possible to get this through something like
my $pdfdata = $self->param('filepdf');
my $jsondata = $self->param('text');
my $pdfdata = $self->req->upload('filepdf');
my $jsondata = $self->req->upload('text');
print "JSONDATA:".$jsondata."\n";
print "PDFDATA:".$pdfdata."\n";
Use of uninitialized value $jsondata in concatenation (.) or string at ./test.pl line 645.
JSONDATA:
Use of uninitialized value $pdfdata in concatenation (.) or string at ./test.pl line 646.
PDFDATA:
Hi Brian ,
Thanks for your answer, i tried it, but this returns empty values for me.
I'm still wondering why...