File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public class PutPolicy
24
24
/// [必需]上传策略失效时刻,请使用SetExpire来设置它
25
25
/// </summary>
26
26
[ JsonProperty ( "deadline" ) ]
27
- public int Deadline { get ; private set ; }
27
+ public long Deadline { get ; private set ; }
28
28
29
29
/// <summary>
30
30
/// [可选]"仅新增"模式
@@ -115,13 +115,13 @@ public class PutPolicy
115
115
/// [可选]上传文件大小限制:最小值,单位Byte
116
116
/// </summary>
117
117
[ JsonProperty ( "fsizeMin" , NullValueHandling = NullValueHandling . Ignore ) ]
118
- public int ? FsizeMin { get ; set ; }
118
+ public long ? FsizeMin { get ; set ; }
119
119
120
120
/// <summary>
121
121
/// [可选]上传文件大小限制:最大值,单位Byte
122
122
/// </summary>
123
123
[ JsonProperty ( "fsizeLimit" , NullValueHandling = NullValueHandling . Ignore ) ]
124
- public int ? FsizeLimit { get ; set ; }
124
+ public long ? FsizeLimit { get ; set ; }
125
125
126
126
/// <summary>
127
127
/// [可选]上传时是否自动检测MIME
@@ -153,7 +153,12 @@ public class PutPolicy
153
153
/// <param name="expireInSeconds"></param>
154
154
public void SetExpires ( int expireInSeconds )
155
155
{
156
- this . Deadline = ( int ) Util . UnixTimestamp . GetUnixTimestamp ( expireInSeconds ) ;
156
+ this . Deadline = Util . UnixTimestamp . GetUnixTimestamp ( expireInSeconds ) ;
157
+ }
158
+
159
+ public void SetExpires ( long expireInSeconds )
160
+ {
161
+ this . Deadline = Util . UnixTimestamp . GetUnixTimestamp ( expireInSeconds ) ;
157
162
}
158
163
159
164
/// <summary>
You can’t perform that action at this time.
0 commit comments