简体   繁体   English

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

[英]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 的文档提到了两种支持上传较大文件的方法。

  • Resumable upload and断点续传和
  • XML API multipart upload XML API 分段上传

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.

相关问题 SQLAlchemy / Flask / Google Cloud SQL -- 如何处理 UTF8MB4 - SQLAlchemy / Flask / Google Cloud SQL -- How deals with UTF8MB4 如何通过 cli / rest api / 云功能运行 Google Cloud Build 触发器? - How to run a Google Cloud Build trigger via cli / rest api / cloud functions? 如何在没有 JavaScript 令牌的情况下将文件上传到谷歌云存储 - How can I upload files to google cloud storage without token in JavaScript 如何将本地视频文件上传到 Google Cloud - How to upload local video file to Google Cloud 在 Python/Django 中从 Google Cloud Storage/ Buckets 上传和检索文件 - Upload and retrieve files from Google Cloud Storage/ Buckets in Python/Django 从 Google Cloud Storage 中的目录并行上传文件 - Parallel upload of files from a directory in Google Cloud Storage 通过公共 HTTP 自动将大文件检索到 Google Cloud Storage - Automatically retrieving large files via public HTTP into Google Cloud Storage 谷歌云运行准备检查 - 如何? - readiness check for google cloud run - how? Python 无法在生产环境中运行的谷歌云上找到文件 - Python are not able to find files on google cloud run in production 使用 Artifact Repository 时如何查看在我的 Google Cloud Platform Cloud Run 服务上运行的文件? - How to see the files running on my Google Cloud Platform Cloud Run service when using Artifact Repository?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM