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: 16183
Status: resolved
Priority: 0/
Queue: CGI

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

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



Subject: Make filehandle from upload() act like an IO::Handle
I discovered that I cannot use a filehandle returned by upload() in Archive::Zip::readFromFileHandle. The problem seems to be that the filehandle returned is neither a mere file glob nor a IO::Handle based object and does not understand most IO::Handle methods. It would be nice if upload() would return an IO::Handle or IO::File instead of the lightweight Fh, or, maybe safer in terms of backward compatibility, implement all of the missing methods (which could be autoloaded). Regards, Slaven
On Tue Nov 29 10:44:41 2005, SREZIC wrote: Show quoted text
> I discovered that I cannot use a filehandle returned by upload() in > Archive::Zip::readFromFileHandle. The problem seems to be that the > filehandle returned is neither a mere file glob nor a IO::Handle based > object and does not understand most IO::Handle methods. > > It would be nice if upload() would return an IO::Handle or IO::File
instead Show quoted text
> of the lightweight Fh, or, maybe safer in terms of backward compatibility, > implement all of the missing methods (which could be autoloaded).
I'm writing to confirm that a fix for this was released in 3.41, with the addition of a handle() method. It's a feature I will appreciate as well! Mark