Added MIME checking to uploader