diff --git a/src/data/http_request_handler.rs b/src/data/http_request_handler.rs index 13131b7..59732f6 100644 --- a/src/data/http_request_handler.rs +++ b/src/data/http_request_handler.rs @@ -14,8 +14,8 @@ use crate::data::config::conf; use crate::data::error::{ExecError, ResultBoxError}; use crate::data::user::UserID; use crate::helpers::{account_helper, api_helper, conversations_helper, user_helper}; +use crate::utils::user_data_utils::{generate_new_user_data_file_name, prepare_file_creation, user_data_path}; use crate::utils::virtual_directories_utils::check_virtual_directory; -use crate::utils::user_data_utils::{prepare_file_creation, generate_new_user_data_file_name}; /// Http request handler /// @@ -281,8 +281,9 @@ impl HttpRequestHandler { let target_user_data_folder = prepare_file_creation(self.user_id()?, folder)?; let target_file_path = generate_new_user_data_file_name(target_user_data_folder.as_path(), "png")?; + let target_sys_path = user_data_path(target_file_path.as_path()); - Ok(target_file_path.to_str().unwrap().to_string()) + Ok(target_sys_path.to_str().unwrap().to_string()) } /// Get an integer included in the POST request