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

如何配置表单字段的编码 #42

Open
changchang opened this issue Jul 29, 2014 · 2 comments
Open

如何配置表单字段的编码 #42

changchang opened this issue Jul 29, 2014 · 2 comments

Comments

@changchang
Copy link

默认似乎是utf8,服务器是用gbk的,出现乱码。服务器编码不能改,是否能在upload插件里配置上传表单中字段的编码呢?

@afc163
Copy link
Member

afc163 commented Jan 21, 2015

可以先试试

$.ajaxSetup({
  contentType: 'multipart/form-data; charset=gbk'
})

@afc163
Copy link
Member

afc163 commented Jan 21, 2015

不过这里应该支持配置的:

upload/index.js

Line 160 in fbee807

contentType: false,

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