def METHOD_NAME(self, data):
    """Validate if the size is coherent with django settings."""
    max_file_size = settings.SUBTITLE_SOURCE_MAX_SIZE
    if "size" in data and int(data["size"]) > max_file_size:
        raise serializers.ValidationError(
            {"size": [f"File too large, max size allowed is {max_file_size} Bytes"]}
        )
    return super().METHOD_NAME(data)