Actually, if i wantet to send files to servers where I have FTP access i would use something else. But once i want to send data somewhere else (like some kiddie upload script) I want to make this.
And once O realised that its not easy, it became also a bit chalenge for me
Thank you for link to new version of file_mime_type
But actually, I maybe want to do not send mime types with files correctly, to test skils of my frinds (and enemies )