如何通过 Google Cloud 运行 上传大于 32mb 的文件

How to upload files >32mb via Google Cloud Run

我在 Java 中使用 Spring Boot 实现了云 运行 进程,该进程使用通过 HTTP 上传的文件。上传的文件有时超过 32 MB。我知道 32mb 是 Cloud 运行 下固定的单个请求限制。 Cloud 运行 的 documentation 提到了两种支持上传较大文件的方法。

我不知道如何在 Spring Boot.在我看来,Google Storage API 似乎没有为此提供方法。我错过了什么吗?

通过将您的请求直接发送到云存储而不是通过云 运行 路由它们,您将能够绕过此限制。执行此操作的两种主要方法是 signed URLs or signed post policy URLs. There's also a blog post that talks a little more about them here.