Skip to content

文件勘誤:附件上傳上限未更新(2 MiB → 20 MiB) #925

Open

Description

@Dan9615

設定文件的 Storage limits 一節仍將單一附件上傳上限寫為 2 MiB,但 v0.35.1 的後端原始碼已經是 20 MiB。

文件位置

https://docs.codeg.app/getting-started/configuration#storage-limits

目前線上文件寫的是:

Each individual attachment is additionally capped at 2 MiB — a fixed limit, not configurable.

發行版原始碼

v0.35.1: src-tauri/src/web/handlers/files.rs, line 222

pub const UPLOAD_MAX_BYTES: u64 = 20 * 1024 * 1024;

這對應 20 MiB(20,971,520 bytes)。該常數的註解也明確說明它用於 web / remote-workspace 的單一附件上傳。

建議將文件中的 2 MiB 更新為 20 MiB;如果需要保留舊版本說明,可以註明適用版本。這個差異會讓使用者誤以為 2–20 MiB 的 PDF 等附件無法透過網頁上傳。

驗證方式:對照目前線上文件與 v0.35.1 原始碼;未進行實際上傳測試。

Activity

  1. changed the title [-]文档勘误:附件上传上限未更新(2 MiB → 20 MiB)[/-] [+]文件勘誤:附件上傳上限未更新(2 MiB → 20 MiB)[/+] on Oct 11, 2026
  2. xintaofei commented on Oct 12, 2026

    @xintaofei
    Collaborator

    codeg work task 314 is done — merged locally into main as f3c4e88 (2 files, +6/-2).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions