postman运行collection上传文件脚本 console报错 Form param `file`, file load error: PPERM: insecure file access outside working directory

发布时间 2023-06-13 16:06:52作者: 老板娘来碗三鲜粉

postman运行collection上传文件脚本 console报错 Form param `file`, file load error: PPERM: insecure file access outside working directory

是因为没有打开上传的文件的所在目录

解决办法有两种:

  1)在files路径下存放你所要的测试数据

  2)开启允许读取工作目录外的文件按钮