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.