RE: [PHP] Anyone?? file uploads received, but mangled
| From: | John W. Holmes | Date: | Tue, 28 Jan 2003 00:43:08 +0000 |
| Subject: | RE: [PHP] Anyone?? file uploads received, but mangled | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-133326@lists.php.net to get a copy of this message | ||
> 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.
Are you using Apache 2?
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/