[PR #1730] [MERGED] Add support for v2 attachment upload APIs #3373

Open
opened 2025-10-09 18:22:14 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/1730
Author: @jjlin
Created: 5/25/2021
Status: Merged
Merged: 5/30/2021
Merged by: @dani-garcia

Base: mainHead: attachment-upload-v2


📝 Commits (4)

  • 29ed82a Add support for v2 attachment upload APIs
  • 5fef798 Clean up attachment error handling
  • c2ef331 Rework file ID generation
  • 3f7e471 Fix attachment size limit calculation for v2 uploads

📊 Changes

4 files changed (+236 additions, -42 deletions)

View changed files

📝 src/api/core/ciphers.rs (+195 -26)
📝 src/api/core/sends.rs (+1 -1)
📝 src/crypto.rs (+15 -2)
📝 src/db/models/attachment.rs (+25 -13)

📄 Description

Upstream PR: https://github.com/bitwarden/server/pull/1229

The legacy upload flow can be tested with v2.19 of the web vault.

The v2 upload flow can be tested with v2.20 of the web vault.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dani-garcia/vaultwarden/pull/1730 **Author:** [@jjlin](https://github.com/jjlin) **Created:** 5/25/2021 **Status:** ✅ Merged **Merged:** 5/30/2021 **Merged by:** [@dani-garcia](https://github.com/dani-garcia) **Base:** `main` ← **Head:** `attachment-upload-v2` --- ### 📝 Commits (4) - [`29ed82a`](https://github.com/dani-garcia/vaultwarden/commit/29ed82a3595e0cdd39deb914dc38002478f89f97) Add support for v2 attachment upload APIs - [`5fef798`](https://github.com/dani-garcia/vaultwarden/commit/5fef7983f4e3bc942ec0f029037454edfb057cad) Clean up attachment error handling - [`c2ef331`](https://github.com/dani-garcia/vaultwarden/commit/c2ef331df9d2a1a3e50ed8129b07cca0a52e6f41) Rework file ID generation - [`3f7e471`](https://github.com/dani-garcia/vaultwarden/commit/3f7e4712cd9e62ce85f58e449074b98e5c95a142) Fix attachment size limit calculation for v2 uploads ### 📊 Changes **4 files changed** (+236 additions, -42 deletions) <details> <summary>View changed files</summary> 📝 `src/api/core/ciphers.rs` (+195 -26) 📝 `src/api/core/sends.rs` (+1 -1) 📝 `src/crypto.rs` (+15 -2) 📝 `src/db/models/attachment.rs` (+25 -13) </details> ### 📄 Description Upstream PR: https://github.com/bitwarden/server/pull/1229 The legacy upload flow can be tested with v2.19 of the web vault. The v2 upload flow can be tested with v2.20 of the web vault. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2025-10-09 18:22:14 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#3373