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

Re^2: Getting a filehandle for uploaded file

by luker (Initiate)
on Oct 20, 2009 at 13:51 UTC ( [id://802233]=note: print w/replies, xml ) Need Help??


in reply to Re: Getting a filehandle for uploaded file
in thread Getting a filehandle for uploaded file

I noticed that too. So what's the alternative?
  • Comment on Re^2: Getting a filehandle for uploaded file

Replies are listed 'Best First'.
Re^3: Getting a filehandle for uploaded file
by ikegami (Patriarch) on Oct 20, 2009 at 14:48 UTC

    One would think the user didn't upload a file or an error occured (too big?). You can use

    defined($file_from_upload) && defined(fileno($file_from_upload))
    to determine if the param was supplied and that it was supplied as a file upload.
Re^3: Getting a filehandle for uploaded file
by Bloodnok (Vicar) on Oct 20, 2009 at 14:47 UTC
    Hmmm, maybe this will be of use ... to us both ;-)

    A user level that continues to overstate my experience :-))
      Again, there the advice is to use:
      my $upload_filehandle = $query->upload("photo");
      and then read from the $upload_filehandle. In my case, the $upload_filehandle is coming back undef.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-25 23:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found