Skip to content

[Bug] Large image upload (5MB) fails on supported Memos v0.26.2 via Cloudflare Tunnel #347

@Wennieczj

Description

@Wennieczj

Title

[Bug] Large image upload (5MB) fails on supported Memos v0.26.2 via Cloudflare Tunnel

Description

I am encountering a sync failure when uploading larger images (e.g., 5MB camera photos) using Moe Memos. Smaller images (e.g., 100KB screenshots) sync without any issues.

According to the FAQ, my server version (v0.26.2) is officially supported, so this does not appear to be an API version mismatch.

Environment

  • Moe Memos Version: 2.0.2
  • Memos Server Version: v0.26.2
  • Network Setup: Self-hosted Memos -> Cloudflare Tunnel -> Moe Memos App

Steps to Reproduce

  1. Open Moe Memos and compose a new memo.
  2. Attach a large image (approx. 5MB).
  3. Tap save/sync.
  4. Error message appears: "failed to upload one or more attachments during sync".
  5. Repeat the same steps with a 100KB image, and it succeeds.

Troubleshooting Performed

  • Web UI Test: Uploading the exact same 5MB image via the Memos Web UI (on PC/Browser) works perfectly. This confirms that the server, Cloudflare Tunnel, are correctly configured to handle 5MB+ payloads.
  • Security Settings: Checked Cloudflare Security Events; no requests were blocked. Bot Fight Mode is disabled.
  • Server Limit: Memos server "Max upload size" is set to 30MB.

Expected Behavior

The app should be able to sync larger attachments successfully, similar to the Web UI, or provide a clearer error if it's a timeout issue.

Additional Context

It seems like the App's sync mechanism might have a strict timeout or a memory limit when handling larger binary data via the API, which causes it to fail during the tunnel transmission.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions