python 续点上传

为什么为我用qiniu的python sdk生成的token,在续点上传时会出现 “None bad token, detail:up:out of auth scope;UP:3/401”?是不是我生成的token不对?

    policy = qiniu.rs.PutPolicy(bucket_name)
    extra = qiniu.resumable_io.PutExtra(bucket_name)  
    uptoken = policy.token()
    ret, err = qiniu.resumable_io.put_file(uptoken, file_name, file,extra)
查看回复