Package: perl-modules
Version: 5.8.4-8
Severity: normal

if "inputname" is the file input in a form

use CGI;
my $q = new CGI;
my $fh = $q->upload("inputname");
my $fn = $q->param("inputname");
my $info = $q->uploadInfo($fn);

$info is undef

This occurs in code that was working previous to upgrading to 3.1
on Friday. 

The perldoc for CGI.pm gives:
              $type = $query->uploadInfo($filename)->{'Content-Type'};
as a suggested way of retreiving MIME content type. As uploadInfo
is now returning undef, this fails badly.


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.18
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages perl-modules depends on:
ii  perl                          5.8.4-8    Larry Wall's Practical Extraction 

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to