As AWS S3 GetObject doesn't provide proper file handling, move logic into custom request validation step