protected static function build(array $file)
    {
        if (is_array($file['tmp_name'])) {
            return static::normalizeNested($file);
        }

        return new UploadedFile(
            $file['name'],
            $file['tmp_name'],
            $file['type'],
            $file['size'],
            $file['error']
        );
    }