diff --git a/interfaces/common/file_share_sandbox.json b/interfaces/common/file_share_sandbox.json index 55e9cfc88829489b19345b72ba29d5b7874d0b4f..7d195ff1d5915048228d00d2bd6b5ba278b3fc8e 100644 --- a/interfaces/common/file_share_sandbox.json +++ b/interfaces/common/file_share_sandbox.json @@ -40,7 +40,7 @@ "src-path" : "/mnt/hmdfs//account/merge_view/files/Docs/" }, { "sandbox-path" : "/storage/External/", - "src-path" : "/mnt/data/External/" + "src-path" : "/mnt/data/external/" }, { "sandbox-path" : "/storage/Share/", "src-path" : "/data/service/el1/public/storage_daemon/share/public/" diff --git a/interfaces/kits/js/file_share/grant_uri_permission.cpp b/interfaces/kits/js/file_share/grant_uri_permission.cpp index 783fe7c814db0c745266d7951a27d96da43b2bb6..9b464f2ca48a0a675fb05b2cffee4d83661a5199 100644 --- a/interfaces/kits/js/file_share/grant_uri_permission.cpp +++ b/interfaces/kits/js/file_share/grant_uri_permission.cpp @@ -139,7 +139,7 @@ namespace ModuleFileShare { return -EINVAL; } - int32_t filesType = GetMediaTypeAndApiFromUri(uri.GetPath(), isApi10); + int32_t filesType = GetMediaTypeAndApiFromUri(uri.ToString(), isApi10); valuesBucket.Put(PERMISSION_FILE_ID, fileId); valuesBucket.Put(PERMISSION_BUNDLE_NAME, uriPermInfo.bundleName); valuesBucket.Put(PERMISSION_MODE, uriPermInfo.mode);