diff --git a/src/handlers/file_handler.rs b/src/handlers/file_handler.rs
index afb592d..504f31d 100644
--- a/src/handlers/file_handler.rs
+++ b/src/handlers/file_handler.rs
@@ -307,12 +307,7 @@ impl FileHandler {
match self
.app_state
.file
- .find_file_by_local_path(
- &req.account_hash,
- &normalized_file_path,
- &req.filename,
- req.revision,
- )
+ .find_file_by_local_path(&req.account_hash, &normalized_file_path, &req.filename)
.await
{
Ok(Some(info)) => {
diff --git a/src/services/file_service.rs b/src/services/file_service.rs
index b60851e..87cb4d9 100644
--- a/src/services/file_service.rs
+++ b/src/services/file_service.rs
@@ -606,14 +606,13 @@ impl FileService {
// Try to find actual active file by path/name
// This handles the case where client has wrong file_id (from previous deleted file)
- // revision=0 means get the latest active file
+ // Now searches by updated_time (latest active file)
match self
.storage
.find_file_by_path_and_name(
&file_info.account_hash,
&file_info.file_path,
&file_info.filename,
- 0, // revision=0: get latest active file (highest revision, not deleted)
)
.await
{
@@ -808,11 +807,10 @@ impl FileService {
account_hash: &str,
file_path: &str,
filename: &str,
- revision: i64,
) -> Result