file uploads received, but mangled
| From: | af at ax-im dot com | Date: | Tue, 21 Jan 2003 01:24:01 +0000 |
| Subject: | file uploads received, but mangled | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-132326@lists.php.net to get a copy of this message | ||
Hi all.
I'm having issues uploading files whose names don't necessarily end with the correct
extension, in particular 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 binary data which makes them difficult to deal with in an elegant
automated way.
No doubt this is a mime type issue, as the files are received as type
"application/x-macbinary" when sent from OSX Explorer. 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.
Thanks,
Alex
af@ax-im.com