A short version of a question previously asked:
When uploading image.jpg using the standard multipart/form-data, I get
HTTP_POST_FILES["image"] =
Array
(
[name] => image.jpg
[type] =>
[tmp_name] => /tmp/phpllMae6
[size] => 17394
)
Note that if I leave the file field empty, then name is empty (like type is above, and not "none").
is_uploaded_file() says it worked, and I can get the binary into mysql, so the big question: why is type empty?
The slightly less big question: I have a switch statement in my script that is totally ignored if I use enctype="multipart/form-data" -why is that?
Any and all ideas appreciated, so throw 'em at me.
Apache/1.3.14 (Unix) (Red-Hat/Linux) mod_ssl/2.7.1 OpenSSL/0.9.5a PHP/4.0.4pl1 mod_perl/1.24
thx
mark