我使用这样的政策:
var sharedAccessPolicy = {
AccessPolicy:{
Permissions: azure.Constants.BlobConstants.SharedAccessPermissions.WRITE,
//Start: //use for start time in future, beware of server time skew
Expiry: formatDate(new Date(new Date().getTime() + 10 * 60 * 1000)) //10 minutes from now
}
哪个效果很好。但是如果我想生成同时具有 READ 和 WRITE 权限的 SAS,我应该怎么做?
Permissions: azure.Constants.BlobConstants.SharedAccessPermissions.WRITE| azure.Constants.BlobConstants.SharedAccessPermissions.Read
不行……我对那个SDK不熟悉……请帮忙~