Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CGI CPAN distribution.

Report information
The Basics
Id: 4814
Status: resolved
Priority: 0/
Queue: CGI

People
Owner: Nobody in particular
Requestors: seph [...] directionless.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: trouble uploading files with mozilla
Download (untitled) / with headers
text/plain 667b
I'm trying to make a simple file uploader using CGI.pm's $query->upload. All the code I've tried results in "Use of uninitialized value in <HANDLE>" when it tries to read the uploaded file. The code I have now, which is pretty close to the example code I can find is: my $filename = $q->param("filename"); $filename =~ s/.*[\/\\](.*)/$1/; my $upload_filehandle = $q->upload("filename"); while ( <$upload_filehandle> ) { print STDERR; } looking at a Dumper of $q, I don't see any .tmpfiles. googling, finds this thread: http://mail.pm.org/pipermail/cedarvalley/2003-December/000009.html which seems to be the same problem I'm looking at.
Subject: trouble uploading files with mozilla (solved)
From: seph [...] directionless.org
Download (untitled) / with headers
text/plain 172b
Ah. It appears better now that I'm using start_multipart_form, and not start_form. I think I blame the docs. Anyhow, you may as well close this, this, or call it a doc bug.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.