I\'m programming something that allows users to store documents and pictures on a webserver, to be stored and retrieved later. When users upload files to my server, PHP tells m
For an exact answer on how you could quickly do this in PHP, check out this question: How do I find the mime-type of a file with php?