No server-side file size limit on uploads (v0)

未关闭
#313 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
活跃
技术栈
aws, typescript
领域
api, backend, cloud

调研方向

从 src/routes/(app)/storage/api/upload/+server.ts 开始,追踪请求流如何传递给 @aws-sdk/lib-storage Upload。该 issue 将限制推迟到了解典型对象大小之后,因此在更改行为之前,先确定该配置和完成标准。完成的标准是存在可配置的 MAX_UPLOAD_BYTES 防护,并且不会将上传内容缓冲到内存中。

由索引模型根据 Issue 内容生成。

描述

File: src/routes/(app)/storage/api/upload/+server.ts

The upload endpoint imposes no maximum file size. S3's 5 TB single-object limit applies as a natural backstop. For v0 this is acceptable; large uploads will consume server-side streaming resources proportionally but do not buffer the body in memory (the stream is piped directly to the @aws-sdk/lib-storage Upload). Add a configurable MAX_UPLOAD_BYTES guard in a future iteration once typical object sizes are known.

主要语言
TypeScript
星标
1
派生
0
平均合并
22 小时 6 分钟
30 天内合并 PR
12

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

stackabletech/cockpit 的其他 Issue

查看 stackabletech/cockpit 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。