PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Never ever ever ever use the "type" element supplied in the $_FILES entry. That information is supplied by the client submitting and is not even remotely checked by PHP.