Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ie浏览器富文本上传提示下载 #58

Open
xiangyubomb opened this issue Oct 18, 2018 · 1 comment
Open

ie浏览器富文本上传提示下载 #58

xiangyubomb opened this issue Oct 18, 2018 · 1 comment

Comments

@xiangyubomb
Copy link

image

@shenglin-php
Copy link
Contributor

将src/Controller.php中的server方法返回值做一下判断是否是IE浏览器进行修改

把 return response()->json($result, 200, [], JSON_UNESCAPED_UNICODE);
改为
if (strpos($_SERVER['HTTP_USER_AGENT'],"Triden")) {
//如果是IE 特殊处理header
return response($result,200)->header('Content-Type', 'text/html;charset=utf-8');
} else{
return response()->json($result, 200, [], JSON_UNESCAPED_UNICODE);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants