just don't filter file uploads by mime type.
Hehe that's impossible...
A single PHP file will just be moved into a specific directory, a zip file will be moved into the directory below and will be unzipped there so that it's content is spread among serveral directories... it's completely different behavior so I need to be absolutelly sure which mimetype it is.
In the meanwhile I tried fiddling with apaches mime.types file. I tried adding the "php" and "inc" extensions to test/html and several other things but PHP seems to ignore or not to use that.
Ain't there a PHP- or even a bashfunction to determine MIME? In lack of buitin zip handling functions (PHP 4.0.4pl1) I use the exec() and passthru() functions a lot so a systemfunction (Redhat 6.2) wouldn't hurt...
Thanks again,
Dominique