diff --git a/src/storage/s3.js b/src/storage/s3.js index b8860c096..43f2f6845 100644 --- a/src/storage/s3.js +++ b/src/storage/s3.js @@ -277,7 +277,7 @@ function copy(apiConfig, oldFilePath, newFilePath, callback) { var params = { Bucket: apiConfig.bucket, Key: path.join(newFilePath, relativePath), - CopySource: path.join(apiConfig.bucket, content.Key), + CopySource: encodeURIComponent(path.join(apiConfig.bucket, content.Key)), CopySourceRange: 'bytes=' + startBytes + '-' + endBytes, PartNumber: partNumber, UploadId: uploadId