Hey guys, I've been searching, and I'm completely stumped. I'm creating a simple file upload script for hosting a certain filetype by an animation program. When I looked at code for file uploads, the example they always use, are for images. "image/gif" The file's I'm going to be hosting, are .els files and files like that. Files that are not listed on mime as far as I know. How would I get PHP to restrict those filetypes, even though they are not mime? or am I just screwed? lol Wrong section, please move...
If you can, add the file mime types to Apache. However, if that is not possible, the final option I see is to check for the file extension - which doesn't necessarily always represents the file type.