JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

Current request is not a multipart request 在tinymce中用XMLHttpRequest上传图片到服务器报错

发布时间 2023-04-02 16:11:38作者: 信铁寒胜

1、尝试解决。将header的content-type参数的值改为multipart/form-data。

接着就报了

the request was rejected because no multipart boundary was found

 

2、网上的方法都试遍了,发现还是无法找到解决方法。

 

最后的解决办法:

将GET请求方法,改为POST就可以了。

 

    本栏目推荐文章
  • 安装npm install报错npm ERR! code ETIMEDOUT npm ERR! errno ETIMEDOUT npm ERR! network request to https://registry.npmjs.org/webpack-subresource-integrity failed, reason
  • vscode错误:Unable to connect to VS Code server: Error in request.
  • Python中出现"No module named 'requests'"的图文解决办法
  • 【LeetCode 】练习str_to_date函数;over(rows between CURRENT ROW AND 2 following)实现【当月和接下来2个月】滑动窗口
  • scp 出现 subsystem request failed on channel 0 scp: Connection closed 的解决方法
  • pytest 内置fixture-request
  • 解决前后端的跨域问题:Access to XMLHttpRequest at '**' from origin '**' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
  • GitHub Pull request 同步解决代码冲突
  • No 'Access-Control-Allow-Origin' header is present on the requested resource', 跨域访问的解决方法
  • 微信小程序创建formdata对象,并通过 wx.request 发送file文件
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们