in reply to Re^2: File upload became deaf after upgrading from 5.8.7 to 5.8.9
in thread File upload became deaf after upgrading from 5.8.7 to 5.8.9

Uh, creating a CGI object effectively reads the data from the input. After that, it is gone, when the data is POSTed (as is necessary for file upload) — you may repeat reading parameters from GET.

It's not a matter of garbage collecting, it's a matter of a physical action performed when creating the object. An action that cannot stand being repeated.

  • Comment on Re^3: File upload became deaf after upgrading from 5.8.7 to 5.8.9

Replies are listed 'Best First'.
Re^4: File upload became deaf after upgrading from 5.8.7 to 5.8.9
by Andre_br (Pilgrim) on Nov 05, 2010 at 00:09 UTC
    That's very clarifying, thanks a lot Bart!

    But it is incredible as it worked for years with 5.8.7.
    Probably something they were being tolerant with bad code.
    I'll watch out for this from now on.

    Thanks!

    André

      That's very clarifying, thanks a lot Bart! But it is incredible as it worked for years with 5.8.7. Probably something they were being tolerant with bad code. I'll watch out for this from now on. Thanks!

      Seeing how CGI.pm has always done this, that is unlikely