Malicious File Upload Prevention Java