|
@@ -151,7 +151,7 @@ public class UpYunClient {
|
|
Map<String, Object> policyArgs = Maps.newHashMap();
|
|
Map<String, Object> policyArgs = Maps.newHashMap();
|
|
policyArgs.put("bucket", bucketName);
|
|
policyArgs.put("bucket", bucketName);
|
|
policyArgs.put("save-key", path);
|
|
policyArgs.put("save-key", path);
|
|
- Date expiration = DateUtils.addSeconds(new Date(), 120);
|
|
|
|
|
|
+ Date expiration = DateUtils.addSeconds(new Date(), 600);
|
|
policyArgs.put("expiration", expiration.getTime() / 1000);
|
|
policyArgs.put("expiration", expiration.getTime() / 1000);
|
|
policyArgs.put("date", date);
|
|
policyArgs.put("date", date);
|
|
policyArgs.put("content-md5", md5);
|
|
policyArgs.put("content-md5", md5);
|