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

百度编辑器图片自动上传到OSS上 #145

Closed
guoliangli123 opened this issue Oct 10, 2016 · 2 comments
Closed

百度编辑器图片自动上传到OSS上 #145

guoliangli123 opened this issue Oct 10, 2016 · 2 comments

Comments

@guoliangli123
Copy link

当我改写百度编辑器使图片直接上传到OSS上时,ali-oss报错无法获得文件,是什么原因呢?因为百度编辑器里的input是写在iframe里面,所以无法获取文件吗

@mars-coder
Copy link
Contributor

使用的哪个接口?是浏览器环境吗?还是nodejs环境?
如果是浏览器环境使用put接口的时候不能直接传入一个文件地址,浏览器环境put接口没办法直接读取本地文件,只能传入一个buffer或是一个stream

@binghaiwang
Copy link
Contributor

binghaiwang commented Jan 26, 2018

浏览器端请将数据内容转换成file 使用multipartUpload 或使用buffer 使用put

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

3 participants