我一直在试图使用邮递员的图像上传到我的blob容器文件夹,下面是截图 如何使用邮递员到Azure Blob存储
下面是Authorization of Azure Storage service REST API正在使用生成的签名链接上传图片和正在附加身体的文件名文件字段在身体。
var key = "[Storage account key]";
var strTime = (new Date()).toUTCString();
var strToSign = 'PUT\n\nimage/jpeg; charset=UTF-8\n\nx-ms-date:' + strTime + '\nx-ms-meta-m1:v1\nx-ms-meta-m2:v2\n/colony7/folder-customer-profilepic/Home - explorar.jpg';
var secret = CryptoJS.enc.Base64.parse(key);
var hash = CryptoJS.HmacSHA256(strToSign, secret);
var hashInBase64 = CryptoJS.enc.Base64.stringify(hash);
var auth = "SharedKey colony7:"+hashInBase64;
我已经使用上面的代码这些https://docs.microsoft.com/en-us/rest/api/storageservices/put-block,https://docs.microsoft.com/en-us/rest/api/storageservices/authentication-for-the-azure-storage-services 引用。
我也打开了cors。请分享解决方案,我将如何上传一个JPG或PNG图像到我的BLOB使用邮递员。
在此先感谢
没有直接回答你的问题,但你尝试过Azure存储资源管理器? https://azure.microsoft.com/en-ca/features/storage-explorer/ – CSharpRocks
你为什么要与S3标记呢? –