AWS CloudFront 中签名 URL 的空格

Whitespaces in AWS CloudFront for Signed URL's

我正在使用 AWS CloudFront 为我在 AWS S3 中的文件实施 Signed URL,并且我的签名 URL 对于几乎所有文件都可以正常工作。唯一不起作用的是那些使用空格的文件,例如"Hello world.txt"

根据文档:Creating a Signed URL Using a Custom Policy

Concatenate the following values in the specified order, and remove the whitespace (including tabs and newline characters) between the parts.

我有很多文件已经存储在 AWS S3 中,其中很多都使用了空格。有什么方法可以对这些文件使用 Signed URL?

生成的已签名 URL 已使用 %20%。即使我尝试通过 + 更改 %20% 也没有用。 任何帮助将不胜感激。谢谢

好的...现在可以使用了。

策略中的资源不应包含空格。因此,在对策略进行编码之前,资源中的所有空格都应替换为“+”。例如。 "Hello+world.txt"

希望这对某人有所帮助。