So out server just got upgraded from PHP 3.0.15 to 3.0.18 (we're living in the FUTURE now!), and it caused me trouble.
Using a file input in an html form results in this error:
Warning: File Upload Mime headers garbled [&] in /home/woocha/mall/_admin/testfile.php on line 16
the stuff in [ ] is random (undefined?), and line 16 is the last line in my test file. The warning happens as soon as it gets to PHP code, and doesn't happen if plain HTML appears before any PHP. However, I have a need to do some cookie and header transactions after I deal with the file, which means I cannot have any plain text before the PHP.
$upload_type ("upload" being my form control's name) is empty, and I'm uploading a JPG.
(worked fine in 3.0.15. Works fine in 4.0.x. Lucky me I get stuck on a server with 3.0.18)