On Fri, 18 May 2001, Rick Welykochy wrote:
> Rachel Polanskis wrote:
>
> > Please excuse the perl question but Iam at my wits end.
> >
> > I have written a CGI file_upload script that works fine with a
> > UNIX web browser.
>
> What is the web server running on?
Solaris 5.8/SPARC with Apache 1.3.19 and perl 5.6.
The Ob-Linux is that it could well be going onto a Linux box...
> Perhaps you should stat the file handle returned by the CGI,
> find out the file length and debug dump it.
Ok. I will try this.
> Also, ensure
>
> 1. $file is a CGI variable from a field of the form
> <input type=file name=file>
Done this - I'm using CGI.pm....
> 2. your form's content encoding is "multipart/form-data"
> and not "application/x-www-form-urlencoded"
>
> I mention (2) since perhaps that is difference between the Unix
> and the 'Doze browsers. Perhaps if you get it wrong in Unix
> (and are using "application/x-www-form-urlencoded") the
> browser fixes it up and sends in the multi-part data anyway?!?!
Hmmm... this one is likely. I will investigate further!
thanks...
--
Rachel Polanskis Optus/Excite@Home
UNIX Administrator 100 Harris Street
IT Operations Pyrmont, Sydney NSW
[EMAIL PROTECTED] Ph: (+61 2) 900 51144
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug