Mime types in apache2?

Hi,

I've got two servers, one for dev and one public.

Don't ask me why, but right now the dev is running apache 1.3 and the public is running apache2. I'm using php5 on both servers.

I've got a php script to upload files and then list the uploaded files with the corresponding mime-type icon.

I get the mime-type with the $_FILES['type'] superglobal in php and put that into the db so that I later can fetch it and display the correct icon.

I do however not think this is a php issue, rather an apache issue, although I could be wrong.

When uploading to the dev-server I get 'application/pdf' and when uploading to the public-server I get 'application/octetstream'.

Anyone who have experienced this? Got any suggestions?

Thanks.

 

 

 

 

Top