Skip to content

Conversation

SunLn
Copy link
Contributor

@SunLn SunLn commented Nov 17, 2014

重构:
1、提取 API_HOST
2、PutPolicy 函数传入了太多参数,改为传入一个对象参数
3、上传策略参数的获取、赋值顺序全部按照 http://developer.qiniu.com/docs/v6/api/reference/security/put-policy.html

改动:
1、移除了 PutPolicy.prototype.getFlags 没有用到的参数 putPolicy、重复的获取insertOnly操作
2、在 PutPolicy 函数新增了callbackHostpersistentPipeline等上传策略配置项,保持和文档同步

@SunLn SunLn changed the title 少量重构、新增上传策略参数 [dm]少量重构、新增上传策略参数 Nov 17, 2014
@SunLn SunLn changed the title [dm]少量重构、新增上传策略参数 少量重构、新增上传策略参数 Nov 19, 2014
@SunLn
Copy link
Contributor Author

SunLn commented Nov 19, 2014

@longbai

@longbai
Copy link
Contributor

longbai commented Dec 11, 2014

LGTM

longbai added a commit that referenced this pull request Dec 11, 2014
少量重构、新增上传策略参数
@longbai longbai merged commit ecaf534 into qiniu:develop Dec 11, 2014
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

Successfully merging this pull request may close these issues.

2 participants