如何测试发送对象列表的 POST 调用,该对象列表包含用于通过 Postman 上传多个文件的 IFormFiles 列表?

How to test a POST call that sends a list of objects that contain a list of IFormFiles for multiple file upload via Postman?

这是我的 DTO 的形状:

 public class PacketDto
    {
        public string TransmittedAt { get; set; }
        public List<Logs> Files { get; set; } = null!;

        public class Logs
        {
            public LogTypeEnum LogType { get; set; }
            public List<IFormFile> LogFiles { get; set; }
        }
    }

我一直在尝试通过邮递员测试我的端点,但是我在将 List<IFormFile> 映射到 Logs 对象时遇到问题。其他一切都正确映射。在邮递员上以我的形式传递数据时,有人知道我做错了什么吗?我在构建数据时尝试了以下变体:

这就是我在邮递员中格式化表单数据的方式