Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Re: CGI.pm file upload freaking me outby Trimbach (Curate) |
on Jan 07, 2001 at 02:21 UTC ( [id://50289]=note: print w/replies, xml ) | Need Help?? |
I tried your test script and it works perfectly on my server, but after changing my code a bit to reflect yours it still wasn't working. So... the problem wasn't with CGI, but rather with something I did somewhere else in my script.
After some investigation I discovered that apparantly at some point in my development (remember, this is old code) I switched from the OO-style CGI interface to the functional interface, with about 99% using param(blah) and the rest using $object->param(blah). CGI.pm apparantly doesn't have a problem when you mix interfaces for most functions (my HTML-generation and parameter fetching all worked fine) but it apparantly hoses the magic upload functions. Imagine that. :-D Once I took out $object = new CGI; everything miraculously started working. Remember what I said at the beginning? Well, I'm an idiot. Although I didn't intend to, the lesson here is obvious: don't mix your interfaces in CGI.pm. Thanks to all who took the time to post... I sure do appreciate it! Gary Blackburn
In Section
Seekers of Perl Wisdom
|
|