file size validation v2 (clean code. properly add config settings)