File upload & content type problem
| From: | Prokop Vlašín | Date: | Wed, 11 Jul 2001 10:57:55 +0000 |
| Subject: | File upload & content type problem | ||
| Groups: | php.general php.general | ||
| Request: | Send a blank email to php-general+get-57348@lists.php.net to get a copy of this message | ||
Hi all.
This is the first time I write something to newsgroups. I've this
problem:
After upgrading PHP3 ->PHP4 and changing the variables to array
($file_type -> $HTTP_POST_FILES['file']['type'] )
The variables that are automatically created when uploading a $file have
all worked properly exept the HTTP_POST_FILES['file']['type']. Also I've
noticed that PHP is adding content type "image/gif" or "image/jpg" at
the beginning of the binary data of uploaded files.
I'm using PHP4 from php-4.0.4pl1-3.i386.rpm package.
(excuse my poor english)
--
Bye
Prokop
URL http://www.aki.cz/prokop/
e-mail mailto:prokop@aki.cz