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

上传图片,filename为blob,而不是文件名 #5

Open
max-young opened this issue Apr 12, 2016 · 10 comments
Open

上传图片,filename为blob,而不是文件名 #5

max-young opened this issue Apr 12, 2016 · 10 comments

Comments

@max-young
Copy link

python
file = request.files['wangEditorMobileFile']
file.filename等于blob
而不是文件名
求解答

@wangfupeng1988
Copy link
Owner

是使用的最新版本吗?另外是哪个浏览器上出现的问题?

@max-young
Copy link
Author

@wangfupeng1988 移动端,版本0.0.3.2,小米自带浏览器和chrome都是这样

@wangfupeng1988
Copy link
Owner

唉,移动端许久没有维护了 http://www.kancloud.cn/wangfupeng/wangeditor2/139064

@max-young
Copy link
Author

@wangfupeng1988 好吧,那您是否可以推荐一个别的编辑器呢?谢谢

@wangfupeng1988
Copy link
Owner

移动端的编辑器,我都没见过用js写的比较好的,否则我就参考着做一下了。

抛开技术来说,我觉得ios的备忘录、有道云笔记app,这些编辑器都OK,但是他们都是需要app端代码支持的,纯js搞不了

@hyyyp
Copy link

hyyyp commented May 4, 2016

我也遇到这个问题,你可以按照我的方式修改!
js 搜索一下 xhr.send(formData);
formData.append 你改为
formData.append("image",file) 就行了

@wangfupeng1988
Copy link
Owner

mobile端目前没有精力维护了,你可以自己改一下代码。请见谅

@xuehf
Copy link

xuehf commented Aug 16, 2016

我按照你的方式改了,但是还是不行,请教 @hyyyp

@xuehf
Copy link

xuehf commented Aug 17, 2016

谢谢,改了之后确实好了!之前是因为文件没改对 @hyyyp

@xuehf
Copy link

xuehf commented Aug 17, 2016

还有一个问题是,图片插入的位置不对,不是插入到光标位置,而是,光标所在div的最后,遇到过这种问题吗 @hyyyp

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

4 participants