Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
chore: fix test
nathan3803cf2506e5
diff --git a/frontend/resources/translations/en.json b/frontend/resources/translations/en.jsonindex 43a73cb95d..0ecec39bcd 100644--- a/frontend/resources/translations/en.json+++ b/frontend/resources/translations/en.json@@ -338,7 +338,7 @@"askOwnerToUpgradeToAIMax": "Your workspace has ran out of free AI responses. Please ask your workspace owner to upgrade the plan or purchase AI add-ons","askOwnerToUpgradeToAIMaxIOS": "Your workspace is running out of free AI responses.","purchaseStorageSpace": "Purchase Storage Space",- "singleFileProPlanLimitationDescription": "You need to upgrade to Pro Plan to upload large file",+ "singleFileProPlanLimitationDescription": "You have exceeded the maximum file upload size allowed in the free plan. Please upgrade to the Pro Plan to upload larger files","purchaseAIResponse": "Purchase ","askOwnerToUpgradeToLocalAI": "Ask workspace owner to enable AI On-device","upgradeToAILocal": "Run local models on your device for ultimate privacy",diff --git a/frontend/rust-lib/flowy-storage/src/manager.rs b/frontend/rust-lib/flowy-storage/src/manager.rsindex 9ee50352a3..8585f5ebc6 100644--- a/frontend/rust-lib/flowy-storage/src/manager.rs+++ b/frontend/rust-lib/flowy-storage/src/manager.rs@@ -330,17 +330,15 @@ impl StorageService for StorageServiceImpl {return Err(FlowyError::file_storage_limit());}- let local_file_path = file_path;- // skip copy the file, upload from source- // let local_file_path = self- // .temp_storage- // .create_temp_file_from_existing(Path::new(&file_path))- // .await- // .map_err(|err| {- // error!("[File] create temp file failed: {}", err);- // FlowyError::internal()- // .with_context(format!("create temp file for upload file failed: {}", err))- // })?;+ let local_file_path = self+ .temp_storage+ .create_temp_file_from_existing(Path::new(&file_path))+ .await+ .map_err(|err| {+ error!("[File] create temp file failed: {}", err);+ FlowyError::internal()+ .with_context(format!("create temp file for upload file failed: {}", err))+ })?;// 1. create a file record and chunk the filelet record = create_upload_record(workspace_id, parent_dir, local_file_path.clone()).await?;