1***@qq.com
1***@qq.com
  • 发布:2020-04-24 17:20
  • 更新:2020-04-24 17:20
  • 阅读:690

uploadFile在h5不能上传文件

分类:uni-app

拿到的文件type是jpg,但是传到服务器后变成了text/html,具体内容是这样的:
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>\xe9\xa5\xad\xe7\xb3\x96\xe7\x88\xb1\xe8\xb1\x86</title><script>document.addEventListener(\'DOMContentLoaded\', function() {\n document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + \'px\'\n })\n var coverSupport = \'CSS\' in window && typeof CSS.supports === \'function\' && (CSS.supports(\'top: env(a)\') || CSS.supports(\'top: constant(a)\'))\n document.write(\'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0\' + (coverSupport ? \', viewport-fit=cover\' : \'\') + \'" />\')</script><link rel=stylesheet href=/static/index.cdf7f91b.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.6e77da5c.js></script><script src=/static/js/index.c9038ee7.js></script></body></html>
以前这个接口都好好的,不知道是不是编辑器更新后才出现的问题

2020-04-24 17:20 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复