[PR #5542] [MERGED] refactor: File upload #6877

Closed
opened 2026-03-23 23:17:04 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/5542
Author: @appflowy
Created: 6/14/2024
Status: Merged
Merged: 6/19/2024
Merged by: @appflowy

Base: mainHead: file_upload


📝 Commits (10+)

📊 Changes

62 files changed (+2710 additions, -643 deletions)

View changed files

📝 frontend/appflowy_flutter/integration_test/desktop/board/board_row_test.dart (+1 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/application/document_service.dart (+2 -2)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/copy_and_paste/paste_from_image.dart (+0 -7)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/image_util.dart (+3 -1)
📝 frontend/appflowy_tauri/src-tauri/Cargo.lock (+51 -17)
📝 frontend/appflowy_tauri/src-tauri/Cargo.toml (+1 -1)
📝 frontend/appflowy_web/wasm-libs/Cargo.lock (+90 -20)
📝 frontend/appflowy_web/wasm-libs/Cargo.toml (+1 -2)
📝 frontend/appflowy_web/wasm-libs/af-wasm/Cargo.toml (+0 -1)
📝 frontend/appflowy_web_app/src-tauri/Cargo.lock (+56 -22)
📝 frontend/appflowy_web_app/src-tauri/Cargo.toml (+1 -1)
📝 frontend/rust-lib/Cargo.lock (+58 -35)
📝 frontend/rust-lib/Cargo.toml (+4 -1)
📝 frontend/rust-lib/event-integration-test/Cargo.toml (+1 -0)
📝 frontend/rust-lib/event-integration-test/src/lib.rs (+35 -19)
frontend/rust-lib/event-integration-test/tests/document/af_cloud_test/file_upload_test.rs (+138 -0)
📝 frontend/rust-lib/event-integration-test/tests/document/af_cloud_test/mod.rs (+1 -0)
📝 frontend/rust-lib/event-integration-test/tests/document/mod.rs (+10 -1)
📝 frontend/rust-lib/flowy-core/Cargo.toml (+1 -0)
📝 frontend/rust-lib/flowy-core/src/deps_resolve/document_deps.rs (+2 -2)

...and 42 more files

📄 Description

Refactor the file upload functionality to support future features

dependency PR: https://github.com/AppFlowy-IO/AppFlowy-Cloud/pull/625/files

  • Upload files in the background
  • Record the status of file uploads
  • Resume uploads based on file status
  • Support resumable uploads
  • Pause/Resume when network status change

🔄 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/AppFlowy-IO/AppFlowy/pull/5542 **Author:** [@appflowy](https://github.com/appflowy) **Created:** 6/14/2024 **Status:** ✅ Merged **Merged:** 6/19/2024 **Merged by:** [@appflowy](https://github.com/appflowy) **Base:** `main` ← **Head:** `file_upload` --- ### 📝 Commits (10+) - [`61313a4`](https://github.com/AppFlowy-IO/AppFlowy/commit/61313a4b32972d66a9799c772a2a24552c6a32be) chore: rename service - [`8ac7f9c`](https://github.com/AppFlowy-IO/AppFlowy/commit/8ac7f9c6d96ca76a839a68d6b5576f9807b58602) refactor: upload - [`0b977a0`](https://github.com/AppFlowy-IO/AppFlowy/commit/0b977a0bb5370e763dca17b84d14ddf7f9679df7) chore: save upload meta data - [`930400b`](https://github.com/AppFlowy-IO/AppFlowy/commit/930400b3a609665344d95a4b99d1c3ab4c119e0e) chore: add sql test - [`a294432`](https://github.com/AppFlowy-IO/AppFlowy/commit/a294432b15c66a3e39c314c8833061be371c54a9) chore: uploader - [`7282f8b`](https://github.com/AppFlowy-IO/AppFlowy/commit/7282f8b1eab0e5f1fc8cd4281bb7b62b7ad82291) chore: fix upload - [`bdaad39`](https://github.com/AppFlowy-IO/AppFlowy/commit/bdaad3904349f631e5e4822f05a9b25827bb1643) chore: cache file and remove after finish - [`c232ff4`](https://github.com/AppFlowy-IO/AppFlowy/commit/c232ff4881655a7ab048081fb6909261a9f348ab) chore: retry upload - [`a63ff0f`](https://github.com/AppFlowy-IO/AppFlowy/commit/a63ff0f8dde76b61449a61ecf3e39e827e9d428b) chore: pause when netowork unreachable - [`5123436`](https://github.com/AppFlowy-IO/AppFlowy/commit/5123436cfe1d552e364f7caf1957d2f85f717782) chore: add event test ### 📊 Changes **62 files changed** (+2710 additions, -643 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/integration_test/desktop/board/board_row_test.dart` (+1 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/application/document_service.dart` (+2 -2) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/copy_and_paste/paste_from_image.dart` (+0 -7) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/image_util.dart` (+3 -1) 📝 `frontend/appflowy_tauri/src-tauri/Cargo.lock` (+51 -17) 📝 `frontend/appflowy_tauri/src-tauri/Cargo.toml` (+1 -1) 📝 `frontend/appflowy_web/wasm-libs/Cargo.lock` (+90 -20) 📝 `frontend/appflowy_web/wasm-libs/Cargo.toml` (+1 -2) 📝 `frontend/appflowy_web/wasm-libs/af-wasm/Cargo.toml` (+0 -1) 📝 `frontend/appflowy_web_app/src-tauri/Cargo.lock` (+56 -22) 📝 `frontend/appflowy_web_app/src-tauri/Cargo.toml` (+1 -1) 📝 `frontend/rust-lib/Cargo.lock` (+58 -35) 📝 `frontend/rust-lib/Cargo.toml` (+4 -1) 📝 `frontend/rust-lib/event-integration-test/Cargo.toml` (+1 -0) 📝 `frontend/rust-lib/event-integration-test/src/lib.rs` (+35 -19) ➕ `frontend/rust-lib/event-integration-test/tests/document/af_cloud_test/file_upload_test.rs` (+138 -0) 📝 `frontend/rust-lib/event-integration-test/tests/document/af_cloud_test/mod.rs` (+1 -0) 📝 `frontend/rust-lib/event-integration-test/tests/document/mod.rs` (+10 -1) 📝 `frontend/rust-lib/flowy-core/Cargo.toml` (+1 -0) 📝 `frontend/rust-lib/flowy-core/src/deps_resolve/document_deps.rs` (+2 -2) _...and 42 more files_ </details> ### 📄 Description Refactor the file upload functionality to support future features dependency PR: https://github.com/AppFlowy-IO/AppFlowy-Cloud/pull/625/files - [x] Upload files in the background - [x] Record the status of file uploads - [x] Resume uploads based on file status - [x] Support resumable uploads - [x] Pause/Resume when network status change --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 23:17:04 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#6877
No description provided.