Skip to content

如果遇到上传不成功,可能是因为上传地址不是https的问题。 #44

@54sword

Description

@54sword

使用过程遇到了上传无反应的问题,然后发现源代码上传地址都是http的,修改成https后正常了。
打开你项目中的 node_modules/react-native-qiniu/code/conf.js 文件,都加上https。

let UP_HOST = 'https://up.qbox.me/';
let RS_HOST = 'https://rs.qbox.me';
let RSF_HOST = 'https://rsf.qbox.me';
let API_HOST = 'https://api.qiniu.com';

然后七牛存储区域不同,上传的地址也可能也会不同,大家注意了,一般返回错误中会有提示,看错误修改地址就可以了。

储存区域地址
https://developer.qiniu.com/kodo/manual/1671/region-endpoint

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions