posted 17 years ago
Hi, I doing a server that upload and saves files, it's working fine.
But, I need to let only some extension (like txt and jpg), I'm using the file extension, if it's different I refuse, but a user can rename the file extension before the upload and bypass it.
I found a software called JMimeMagic, it's good, but works with most of thw files, but some time doesn't validate some real txt.
works like this:
any good solution/software for that?