🐛 Fix(custom): encode preSignedUrl to ensure valid URL format

ISSUES CLOSED: #410
This commit is contained in:
Kuingsmile
2025-11-18 15:11:15 +08:00
parent 1b014557e4
commit 631042e0e3

View File

@@ -90,7 +90,7 @@ export const NewDownloader = async (
headers?: any
): Promise<boolean> => {
const options = {
url: preSignedUrl,
url: encodeURI(preSignedUrl),
directory: path.dirname(savedFilePath),
fileName: path.basename(savedFilePath),
cloneFiles: false,