http://www.perlmonks.org?node_id=476995


in reply to CGI.pm: upload() succeeds, uploadInfo() fails

At a guess, you should be doing $q->upload() not upload() (same with uploadInfo).

"Cogito cogito ergo cogito sum - I think that I think, therefore I think that I am." Ambrose Bierce

  • Comment on Re: CGI.pm: upload() succeeds, uploadInfo() fails

Replies are listed 'Best First'.
Re^2: CGI.pm: upload() succeeds, uploadInfo() fails
by Llew_Llaw_Gyffes (Scribe) on Jul 21, 2005 at 20:44 UTC

    That was one of my speculations, too, and I've already tried it (I've gone through probably a dozen revisions of this code trying to either make it work or figure out why it isn't), but doing so didn't make any difference. The q-> is currently back in again, but has not affected the behavior.

      ...but doing so didn't make any difference
      It makes a difference since you're not supposed to mix the two use styles.
        This is true, indeed, and having both styles in use was an oversight. Nevertheless the case remains that even when either style is used consistently, uploadInfo() is still failing and I cannot determine why.