Skip to content

Commit

Permalink
Merge pull request #108 from simon-liubin/bug-fix/mimetype-limit
Browse files Browse the repository at this point in the history
 add mimetype limit
  • Loading branch information
longbai committed Apr 21, 2014
2 parents 3b9f911 + d469c56 commit bba8fb0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/com/qiniu/api/rs/PutPolicy.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ public class PutPolicy {
public int detectMime;
/** 可选 */
public long fsizeLimit;
/**限定用户上传的文件类型
* 可选
* */
public String mimeLimit;
/** 可选 */
public String persistentNotifyUrl;
/** 可选 */
Expand Down Expand Up @@ -104,6 +108,9 @@ public String marshal() throws JSONException {
if(this.fsizeLimit>0){
stringer.key("fsizeLimit").value(this.fsizeLimit);
}
if(this.mimeLimit != null && this.mimeLimit.length() > 0){
stringer.key("mimeLimit").value(this.mimeLimit);
}
if (this.endUser != null && this.endUser.length() > 0) {
stringer.key("endUser").value(this.endUser);
}
Expand Down

0 comments on commit bba8fb0

Please sign in to comment.