[英]How to upload files >32mb via Google Cloud Run
I implemented a Cloud Run process in Java with Spring Boot which consumes file uploads via HTTP. The uploaded files are sometimes over 32 MB in size.我在 Java 中使用 Spring Boot 实现了一个 Cloud Run 进程,它使用通过 HTTP 上传的文件。上传的文件有时超过 32 MB。 I know that 32mb is the fixed single-request limit under Cloud Run.我知道 32mb 是 Cloud Run 下固定的单个请求限制。 The documentation of Cloud Run mentions two approaches to support the upload of larger files. Cloud Run 的文档提到了两种支持上传较大文件的方法。
I have no idea how to implement one of these approaches in Spring Boot.我不知道如何在 Spring Boot 中实现其中一种方法。 To me, it seems like the Google Storage API doesn't provide methods for this.在我看来,Google Storage API 似乎没有为此提供方法。 Am I missing something?我错过了什么吗?
By sending your requests directly to Cloud Storage instead of having them routed through Cloud Run, you'll be able to bypass this limit.通过将您的请求直接发送到 Cloud Storage 而不是让它们通过 Cloud Run 进行路由,您将能够绕过此限制。 The two main ways to do this are signed URLs or signed post policy URLs .执行此操作的两种主要方法是签名 URL或签名后策略 URL 。 There's also a blog post that talks a little more about them here .还有一篇博客文章在这里更多地讨论了它们。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.