无法通过在浏览器中加载presignedURL来加载文件 [英] Unable to load the file by loading the presignedURL in the browser
本文介绍了无法通过在浏览器中加载presignedURL来加载文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我根据您的建议进行了更改.但是我遇到了以下错误.我的区域设置为ap-south-1
I did the changes as per your suggestion. But I got the following error. My region is set to ap-south-1
推荐答案
通常在使用与s3对象不同的区域签名url时发生.我们可以在SDK中全局设置区域
This typically happens when url is signed with a different region than the s3 object. We can set region globally in SDK
AWS.config.update({ region: "ap-south-1" })
或在初始化S3对象时传递区域.
or pass the region when initializing the S3 Object.
const s3 = new AWS.S3({
region: 'ap-south-1'
})
这篇关于无法通过在浏览器中加载presignedURL来加载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文