-
Notifications
You must be signed in to change notification settings - Fork 110
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
能否来个图片上传的后台接参demo #43
Comments
同问 |
示例代码,可以参考一下,uploadUrl是接口路径,uploadField是上传图片的字段(post时会作为参数传过去) $content.artEditor({
imgTar: '#uploadfile', //图片上传按钮
limitSize: 5, //默认限制图片最大5兆
showServer: true, //显示从服务端返回的图片,默认是显示本地资源的图片
uploadUrl: '/upload/steam',
uploadField: 'image_code', //上传图片字段
beforeUpload: function(code) {
//上传前, 处理base64格式
return code.split(',')[1];
},
uploadSuccess: function(result) {
//上传成功后的操作
toast('上传成功');
},
uploadError: function(status, error) {
//这里做上传失败的操作
toast(status);
}
}); |
我也需要大神来个吧 |
你好,请看下方图片中的说明,这样再不会,我也没辙咯。。
… 在 2018年1月19日,上午10:02,ha321456 ***@***.***> 写道:
我也需要大神来个吧
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#43 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AIaPtWpeYXB_nKeRZqyQqjktOriEyK1Sks5tL_eXgaJpZM4OtNCT>.
|
已经上传 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: