file size validation

programmatically enforce file size validation, using configured settings