diff --git a/sdk/storage/src/adapters/oss.adapter.ts b/sdk/storage/src/adapters/oss.adapter.ts index 1d98bd09e5..a73cf41f2e 100644 --- a/sdk/storage/src/adapters/oss.adapter.ts +++ b/sdk/storage/src/adapters/oss.adapter.ts @@ -341,12 +341,7 @@ export class OssStorageAdapter implements IStorage { async copyObjectInSelfBucket(params: CopyObjectParams): Promise { const { sourceKey, targetKey } = params; - const encodedSourceKey = sourceKey - .split('/') - .map((segment) => encodeURIComponent(segment)) - .join('/'); - - await this.client.copy(encodedSourceKey, targetKey); + await this.client.copy(targetKey, sourceKey); return { bucket: this.options.bucket,