Skip to content

Commit c0aee32

Browse files
committed
🐛 Fix: not encode before uploading an image with url
1 parent ddf645f commit c0aee32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const getFSFile = async (filePath: string): Promise<IPathTransformedImgIn
6363
export const getURLFile = async (url: string): Promise<IPathTransformedImgInfo> => {
6464
const requestOptions = {
6565
method: 'GET',
66-
url,
66+
url: handleUrlEncode(url),
6767
encoding: null
6868
}
6969
let isImage = false

0 commit comments

Comments
 (0)