On 26 Oct 2000 21:32:58 +0200 [EMAIL PROTECTED] (Andreas J. Koenig) wrote: > >>>>> On Thu, 26 Oct 2000 03:34:22 +0900, Tatsuhiko Miyagawa <[EMAIL PROTECTED]> >said: > > > 2. CGI::Upload > > Name DSLI Description Info > > ------------- ---- -------------------------------------------- ----- > > CGI:: > > ::Upload bdpO Operation on CGI uploaded files. MIYAGAWA > > > Discussion: > > http://www.freeml.com/ml_view.php?ml=perl-oo&pg=164 > > Pardon me, I do not speak Japanese. Could you provide some insight why > this should be registered? Thanks! Sorry bout that the discussion is done almost in Japanese. CGI::Upload is a kind of utility to handle CGI-uploaded files, using CGI.pm + MIME::Types + Mac::Macbinary + HTTP::BrowserDetect. 1. Macintosh Internet Explorer 4.5 browser sents their local files to servers as "MacBinary" format. So, all the CGI programmers should detect whether the uploaded file's 'Content-Type' be 'application/x-macbinary' and should decode it. With Mac::Macbinary, this module automagically decodes Macbinary, and with MIME::Types it tries to reconstruct Content-Type field via a suffix of orginal file. (Off course, only in case that an uploaded file's Content-Type equals to "application/x-macbinary") 2. CGI.pm 's upload() and param() methods alreday can do "getting the content data and local filename". But you know, if the client uses Windows OS for example, param() returns something like: 'C:\\Program Files\\Foo\\Bar.exe' With HTTP::BrowserDetect and File::Basename, this module tries to detect client OS and get approximate base filename of local files. thanks. -- Tatsuhiko Miyagawa <[EMAIL PROTECTED]>