Depends on the Content-type. I have noticed that IE 4.5 uploads all files as MacBinary, which would be why you are getting the resource fork. You will have to decode the file (one of the dedicated MacPerlers has created a module Mac::Conversions) and discard the resource fork. I haven't yet implemented this, but I understand that it is a trivial undertaking for an experienced Perl programmer. -K "A foolish consistency is the hobgoblin of little minds" > From: owner-macperl-webcgi@macperl.org > Date: Sat, 8 Jan 2000 08:53:10 -0800 (PST) > To: owner-macperl-webcgi@macperl.org > Subject: [MacPerl] BOUNCE macperl-webcgi@macperl.org: Non-member submission > from [savior <webmaster@smalltime.com>] > >> From macperl@cfcl.com Sat Jan 8 08:53:06 2000 > X-Sent-To: <macperl-webcgi@macperl.org> > Received: from ww2.classicweb.com (ww2.classicweb.com [151.196.221.200]) > by cfcl.com (8.9.2/8.9.2) with ESMTP id IAA01799 > for <macperl-webcgi@macperl.org>; Sat, 8 Jan 2000 08:53:01 -0800 (PST) > Received: from [208.177.130.80] (w080.z208177130.sjc-ca.dsl.cnc.net > [208.177.130.80]) > by ww2.classicweb.com (8.9.1/8.8.5) with ESMTP id MAA09400 > for <macperl-webcgi@macperl.org>; Sat, 8 Jan 2000 12:01:01 -0500 (EST) > Mime-Version: 1.0 > X-Sender: maniac@smalltime.com > Message-Id: <v04210100b49d19b3549d@[208.177.130.80]> > In-Reply-To: <200001081250.EAA16862@cfcl.com> > References: <200001081250.EAA16862@cfcl.com> > X-species: Homo sapiens > Date: Sat, 8 Jan 2000 08:45:17 -0800 > To: macperl-webcgi@macperl.org > From: savior <webmaster@smalltime.com> > Subject: Trimming resource fork > Content-Type: text/plain; charset="us-ascii" ; format="flowed" > > I am using CGI.pl for some file uploads. Sometimes the text and > jpg files which get uploaded have resource forks and that screws > things up. Is there a way to strip the resource forks from the > uploaded files? > > ------------------------------------------------------------------ > smalltime industries brings you the latest in games, information, > art, and interplanetary transport. Visit us at www.smalltime.com > ------------------------------------------------------------------ # ===== Want to unsubscribe from this list? # ===== Send mail with body "unsubscribe" to macperl-request@macperl.org -- Vicki Brown <vlb@cfcl.com> ZZZZzzz |\ _,,,---,,_ http://www.cfcl.com/~vlb /,`.-'`' -. ;-;;,_ Journeyman Sourceror: Scripts & Philtres |,4- ) )-,_. ,\ ( `'-' P.O. Box 1269 San Bruno CA 94066 '---''(_/--' `-'\_) ==== Want to unsubscribe from this list? ==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org