javascript - 七牛JS上传提示指定空间不存在。(631:no such bucket)

WBOY
Release: 2016-06-06 20:46:14
Original
5503 people have browsed it

我用七牛的JS SDK更改了uploader 里面的domain为我自己新建的空间域名后还是提示:指定空间不存在。(631:no such bucket)这是什么原因?我后台用的是php SDK,后台的生成token的脚本里面$bucket = 'phpsdk'这样应该没错吧?

回复内容:

我用七牛的JS SDK更改了uploader 里面的domain为我自己新建的空间域名后还是提示:指定空间不存在。(631:no such bucket)这是什么原因?我后台用的是php SDK,后台的生成token的脚本里面$bucket = 'phpsdk'这样应该没错吧?

phpsdk这个空间不从属于你的账号,使用你的密钥组是无法进行资源上传和管理的。
体现在错误信息中,就是 no such bucket

update

http://developer.qiniu.com/docs/v6/api/overview/concepts.html
建议至少浏览一下我们的文档中心,了解一些核心概念和基本的上传流程模型。

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!