javascript - webuploader上传文件组件上传图片时如何带参数给php?

WBOY
Release: 2016-06-06 20:19:06
Original
1860 people have browsed it

YII中使用webuploader上传图片。因为没有csrfToken,YII报了bad request的错误。
如何才能在webuploader中向服务器提交csrfToken (csrfToken可以获取到)?

报错信息
javascript - webuploader上传文件组件上传图片时如何带参数给php?

回复内容:

YII中使用webuploader上传图片。因为没有csrfToken,YII报了bad request的错误。
如何才能在webuploader中向服务器提交csrfToken (csrfToken可以获取到)?

报错信息
javascript - webuploader上传文件组件上传图片时如何带参数给php?

formData:{

<code>            _token:'{{csrf_token()}}'</code>
Copy after login

}

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!