Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Catalyst::Request::Upload inside-out-object weirdness

by andye (Curate)
on Mar 26, 2010 at 14:17 UTC ( [id://831156]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      uploads          => {
                            SourceFile_1 => bless({
    ...
                                  type => "image/jpeg",
                                }, "Catalyst::Request::Upload"),
                          },
    
  2. or download this
            #Get source file and save it to disk.
            my $sourceFilePath = $c->req->param("FileName_" . $i);
    ...
            my $result;
            $result = $c->req->uploads->{"SourceFile_" . $i}->copy_to($fil
    +eName)
                or $c->error("no copy.\nfrom:".$c->req->uploads->{"SourceF
    +ile_" . $i}->tempname."\nto:$fileName \nsyserr: $!");
    
  3. or download this
    [info] *** Request 5 (0.079/s) [1115] [Fri Mar 26 14:04:22 2010] ***
    [debug] File Uploads are:
    ...
    | /upload_photos                                             | 0.00240
    +3s |
    | /end                                                       | 0.00042
    +8s |
    '------------------------------------------------------------+--------
    +---'
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://831156]
Approved by ikegami
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-04-18 14:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found