added a check to upload(), which proves if the uploaded file is a jar with a manifest