Subject: | upload and safari |
Date: | Tue, 04 Mar 2008 13:27:26 -0500 |
To: | bug-libapreq2 [...] rt.cpan.org |
From: | Ted <apache2 [...] netcasters.com> |
Hi,
I'm encountering a server error under these circumstances:
- Using Safari browser 3.0.4 (or 1.0.3)
- Have an HTML form (no multipart/form-data specified - not sure if it
matters)
- On the form, there is an HTML "select" tag which has no name attribute
- Form is submitted
- $ar->upload method encountered
Server issues this error: "Missing parameter for the specified command
line option"
This error does not occur with another other browsers (IE and Firefox on
OS X and
Windows platforms). Adding a name tag attribute to the select tag fixes
the problem
for safari. Easy enough work-around, just don't think it should cause a
server error if
browser behaves poorly.
This should reproduce the error:
--------------------------------
my $ar = Apache2::Request->new($r);
if ($r->method eq 'POST') {
foreach ($ar->upload) { }
}
Platform
---------
libapreq2-2.08
apache 2.2.8
mod_perl 2.0.3
perl 5.8.8
Solaris 10