首页 > 其他分享 >postman运行collection上传文件脚本 console报错 Form param `file`, file load error: PPERM: insecure file access

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

时间:2023-06-13 16:13:46浏览次数:55  
标签:load console postman working 报错 file 上传

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

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

解决办法有两种:

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

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

 

标签:load,console,postman,working,报错,file,上传
From: https://www.cnblogs.com/xytyyds/p/17477812.html

相关文章

  • 【pyqt】报错TypeError: decorated slot has no signature compatible with RecorderP
    一、场景  运行pyqt报错TypeError:decoratedslothasnosignaturecompatiblewithRecorderPlayerProxy.sig_mode_update[object] 二、代码@Slot(int)defupdate_mode(self,mode):...... 三、解决方法  将int去除即可  参考链接:p......
  • Leetcode常见报错的原因分析
    问题1问题描述Line522:Char69:runtimeerror:applyingnon-zerooffset18446744073709551615tonullpointer(basic_string.h)报错原因stringres=0报错分析这里报错的原因是因为使用了int整型变量来初始化string。......
  • vue2.0中使用element-ui时报错
    1、重新安装依赖a)  yarnaddbabel-preset-es2015--devb)  npminstallbabel-preset-es2015-D2、修改babel.config.js配置module.exports={ presets:['@vue/cli-plugin-babel/preset',['@babel/preset-env',{modules:false}]], ......
  • Visual Studio Feature: .http Files
    ExploringtheNewVisualStudioFeature:.httpFiles#visualstudio#csharp#dotnet#abotwrotethisIntroduction:VisualStudio,thepopularintegrateddevelopmentenvironment(IDE)byMicrosoft,continuallyevolvestoenhancedevelopers'productivity......
  • vue 报错 !!vue-style-loader!css-loader?{“sourceMap“:true}!.
    npmrundev报错Thesedependencieswerenotfound:*!!vue-style-loader!css-loader?{"sourceMap":true}!../../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-858b20d4","scoped":true,......
  • window下正常的springboot到mac下运行却报错
    Errorcreatingbeanwithname'defaultValidator'definedinclasspathresource[org/springframework/boot/autoconfigure/validation/ValidationAutoConfiguration.class]:Invocationofinitmethodfailed;nestedexceptionisjava.lang.NoClassDefFoun......
  • php json_encode方法 报错:Inf and NaN cannot be JSON encoded
    json_encode返回falsevar_dump(json_encode($array));通过json_last_error_msg查看报错原因echojson_last_error_msg();InfandNaNcannotbeJSONencoded原因是$array里面包含了NAN和INF这些导致的解决方案如下:echojson_encode(unserialize(str_replace(array('NAN;',......
  • 在使用VScode编辑器vue开发过程中,v-for在Eslint的规则检查下出现报错:Elements in iter
    报错如下: 该怎么解决呢?现在说说解决他的两种方法:1.直接在v-for循环后面绑定一个属性,跟前面需要循环的属性一一对应,截图如下:  2.在vscode中去掉Eslint规则检查,具体操作截图如下:文件–》首选项–》设置–》在搜索框中输入:vetur.validation.template,找到之后将前面的打钩......
  • kkFileView在线文件预览
    来源:http://kkfileview.keking.cn/zh-cn/docs/home.html码云:https://gitee.com/kekingcn/file-online-preview项目简介 #此项目为文件文档在线预览项目解决方案,对标业内付费产品有【永中office】【office365】【idocv】等,在取得公司高层同意后以Apache协议开源出来反哺社区,在......
  • 常见问题——fileinput.js上传文件,不显示文件名的中文
    问题:使用fineinput.js插件上传文件,只显示文件名称中的英文、数字、符号不显示文件名称中的汉字解决方案简单粗暴:修改fileinput.js中的slugDefault方法slugDefault:function(text){returnisEmpty(text)?'':text.split(/(\\|\/)/g).pop().replace(/[^\w\-.\\\/]+......