On Sun, Jan 14, 2007 at 10:15:37PM +1300, Dan Horne wrote:
> I have an application that runs fine with CGI::Application::Dispatch v1.
>
> However, when I upgrade to CGI::Application::Displatch v2, my file upload
> code fails as CGI's uploadInfo is empty.
[...]
> Has anyone else envountered such a problem with uploading files under CAD v2
> and not v1?
I had a similar problem that was resolved by using CGI::Simple
instead of CGI (never figured out the cause, though).
Here's the code I added to the module(s) that needed to handle
uploads:
use CGI::Simple qw(-upload);
# ...
sub cgiapp_get_query {
my $self = shift;
return CGI::Simple->new();
}
Hope this helps,
-E
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.