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: 26070
Status: rejected
Priority: 0/
Queue: CGI

People
Owner: LDS [...] cpan.org
Requestors: greanie [...] yahoo.com
Cc:
AdminCc:

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



Subject: error in filehandle returned by upload function
Date: Tue, 3 Apr 2007 08:52:02 -0700 (PDT)
To: bug-CGI.pm [...] rt.cpan.org
From: Michael Greenish <greanie [...] yahoo.com>
I am using: perl 5.8.5 cgi.pm v 3.11 SuSE Linux 9.2 On occasion, $CGI->upload( 'file_param' ) returns undefined even though the file is properly uploaded and a dump (using Data::Dumper::Simple) of the cgi object shows the proper temp file in the tmpfiles hash. I verified that the temp file was properly uploaded by commenting out the unlink in the CGITempFile package DESTROY function, found the file on the server at the location listed in the tmpfiles hash and checked the byte count on the server versus on the client. I checked the upload function for the most recent version (3.28) and it seems unchanged since 3.11 so this problem can not be solved by upgrading. I notice this when performing multiple uploads in a single post, perhaps 10 or 20 files. File size can range from 10kB to 5MB. No cgi_errors were found to indicate there was a problem and I can not see why the upload function would fail occasionally. Thanks, Mike Greenish Show quoted text
____________________________________________________________________________________ Get your own web address. Have a HUGE year through Yahoo! Small Business. http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
Thanks. I am currently working on another file upload problem and perhaps this problem will be fixed when I resolve the other bug. On Tue Apr 03 11:52:28 2007, greanie@yahoo.com wrote: Show quoted text
> I am using: > > perl 5.8.5 > cgi.pm v 3.11 > SuSE Linux 9.2 > > On occasion, $CGI->upload( 'file_param' ) returns undefined even > though the file is properly uploaded and a dump (using > Data::Dumper::Simple) of the cgi object shows the proper temp
file Show quoted text
> in the tmpfiles hash. I verified that the temp file was properly > uploaded by commenting out the unlink in the CGITempFile package > DESTROY function, found the file on the server at the location > listed in the tmpfiles hash and checked the byte count on the > server versus on the client. I checked the upload function for
the Show quoted text
> most recent version (3.28) and it seems unchanged since 3.11 so > this problem can not be solved by upgrading. I notice this when > performing multiple uploads in a single post, perhaps 10 or 20 > files. File size can range from 10kB to 5MB. No cgi_errors were > found to indicate there was a problem and I can not see why the > upload function would fail occasionally. > > Thanks, > > Mike Greenish > > > > > >
Show quoted text
____________________________________________________________________________________
> Get your own web address. > Have a HUGE year through Yahoo! Small Business. > http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
On Tue Apr 03 11:52:28 2007, greanie@yahoo.com wrote: Show quoted text
> I am using: > > perl 5.8.5 > cgi.pm v 3.11 > SuSE Linux 9.2 > > On occasion, $CGI->upload( 'file_param' ) returns undefined even > though the file is properly uploaded and a dump (using > Data::Dumper::Simple) of the cgi object shows the proper temp file > in the tmpfiles hash. I verified that the temp file was properly > uploaded by commenting out the unlink in the CGITempFile package > DESTROY function, found the file on the server at the location > listed in the tmpfiles hash and checked the byte count on the > server versus on the client. I checked the upload function for the > most recent version (3.28) and it seems unchanged since 3.11 so > this problem can not be solved by upgrading. I notice this when > performing multiple uploads in a single post, perhaps 10 or 20 > files. File size can range from 10kB to 5MB. No cgi_errors were > found to indicate there was a problem and I can not see why the > upload function would fail occasionally.
Thanks for the report. However, I'm marking th is as "rejected" now due to no further follow-up reports of this happening since 2007. If you still experience the issue, please reply to re-open the bug report. Mark