I don't believe it -- it's another IE "feature"!!  It doesn't happen in Netscape 7.  
Not completely sure, but I think the binary data is the mac-specific type/creator code 
which apparently IE feels the need to prepend.  I thought I was safe now that I've 
dumped OS 9 entirely and moved everything to OS X, but I guess not.

Btw, I finally figured out a way of stripping the binary data with a regexp (after 
struggling for a while before discovering that fgets is not binary safe!), but still, 
it's a hack that I'd rather not have to use.  Honestly, Microsoft is the bane of my 
existence.  Every time it tries to "help", it gets it wrong.

Thanks to everyone for the suggestions.  Sometimes the eyes blur and the mind freezes 
over at times like these, and it takes external input to get un-frozen.

Cheers...
Alex
[EMAIL PROTECTED]



> Are you using Apache 2?
> 
> ---John W. Holmes...




> > Last try -- I know there's a lot of noise in this group, but could someone
> > please offer an opinion?
> > 
> > Is the following possible to work around, or is it a bug that I should be
> > reporting?
> > 
> > I'm having issues uploading files whose names don't necessarily end with
> > the correct extension, in particular plain text files which don't end in
> > .txt.  (Why they don't is complicated, and it's impractical to insist that
> > they must.)  The files are received, but altered -- they are prepended
> > with garbage data which makes them difficult to deal with in an elegant
> > automated way, which is the whole point.
> > 
> > No doubt this is a mime type issue, as the files are received as type
> > "application/x-macbinary" when sent from OSX IE (its best guess, I
> > suppose).  Is there any way to force plain text, or raw data?  All I want
> > to happen is for the files to be uploaded completely unchanged.
> > 
> > Btw, this happens with PHP 4.2.3 on OSX (entropy.ch), and with the latest
> > 4.3 on OpenBSD.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to