mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: support uploading image to cloud storage (#4413)
* feat: add object ext * feat: integrate upload image api * feat: support uploading local file to cloud * feat: abstact the CachedNetworkImage as FlowyNetworkImage * ci: fix tauri ci * fix: integration test --------- Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io> Co-authored-by: nathan <nathan@appflowy.io>
This commit is contained in:
@ -19,8 +19,9 @@ where
|
||||
fn get_object_url(&self, object_id: ObjectIdentity) -> FutureResult<String, FlowyError> {
|
||||
let try_get_client = self.0.try_get_client();
|
||||
FutureResult::new(async move {
|
||||
let file_name = format!("{}.{}", object_id.file_id, object_id.ext);
|
||||
let client = try_get_client?;
|
||||
let url = client.get_blob_url(&object_id.workspace_id, &object_id.file_id);
|
||||
let url = client.get_blob_url(&object_id.workspace_id, &file_name);
|
||||
Ok(url)
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user