英文:
Download mp3 file using amazon link
问题
您从第三方获取了一个Amazon S3的URL链接。每当尝试访问此链接并下载文件时,它会过期。我不知道如何从链接下载此文件。以下是链接:
我正在尝试以下方式:
<a class="a-orange" target="_blank" title="Download mp3"
href="https://s3.amazonaws.com/telephony-recorder-prod/fe3b51e5-
b8c9-4ff4-b7cd-0f86901fe67b/2023-06-09/bbdede88-06e4-11ee-b0e0-
02420a0de768-1686329007.mp3?X-Amz-Algorithm=AWS4-HMAC-
SHA256&amp;X-Amz-Credential=AKIASDC5E2MJDPKMH7UW%2F20230609%2Fus-
east-1%2Fs3%2Faws4_request&amp;X-Amz-
Date=20230609T164332Z&amp;X-Amz-Expires=600&amp;X-Amz-
SignedHeaders=host&amp;X-Amz- Signature=1583e6b4ac7d458efa0d7ecf56114542de420dc4b6761d072c5795e0dfceb0ff">
<i _ngcontent-svl-c100="" class="fa fa-download mr-2"></i>
</a>
任何形式的帮助都将不胜感激。
英文:
I am getting a s3 amazon url from third party.
Whenever I try to hit this url and download the file from this link it expire.
I am not getting how to download this file from link.
Here is the link.
I am triyng this way
<a class="a-orange" target="_blank" title="Download mp3"
href="https://s3.amazonaws.com/telephony-recorder-prod/fe3b51e5-
b8c9-4ff4-b7cd-0f86901fe67b/2023-06-09/bbdede88-06e4-11ee-b0e0-
02420a0de768-1686329007.mp3?X-Amz-Algorithm=AWS4-HMAC-
SHA256&amp;X-Amz-Credential=AKIASDC5E2MJDPKMH7UW%2F20230609%2Fus-
east-1%2Fs3%2Faws4_request&amp;X-Amz-
Date=20230609T164332Z&amp;X-Amz-Expires=600&amp;X-Amz-
SignedHeaders=host&amp;X-Amz- Signature=1583e6b4ac7d458efa0d7ecf56114542de420dc4b6761d072c5795e0dfceb0ff">
<i _ngcontent-svl-c100="" class="fa fa-download mr-2"></i></a>
Any kind of help much appriciated.
答案1
得分: 1
这是一个Amazon S3预签名URL,它提供了对Amazon S3中私有对象的有时限制的访问,直到它过期。
它在他们的网站上工作,因为当您访问该服务时,他们会生成一个新的预签名URL。它将在生成预签名URL后的600秒内过期。
因此,您应该前往您提到的“门户”,通过他们提供的“新鲜”链接下载它。
英文:
It is an Amazon S3 pre-signed URLs, which provides time-limited access to private objects in Amazon S3, which has a limited time until it expires.
It works from their website because they generate a new pre-signed URL when you access the service. It will expire after 600 seconds of the time that they generate the pre-signed URL.
Therefore, you should go to the 'portal' you mention and download it via a 'fresh' link that they provide.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论