do not encode url when getting file data

This commit is contained in:
Hongbo Wu
2024-01-23 22:06:27 +08:00
parent d4e487e181
commit c1d5ec722f

View File

@ -114,7 +114,7 @@ const getUploadIdAndSignedUrl = async (
}`,
variables: {
input: {
url,
url: encodeURI(url),
contentType: 'application/pdf',
clientRequestId: articleSavingRequestId,
},
@ -304,11 +304,7 @@ export const savePageJob = async (data: Data, attemptsMade: number) => {
if (contentType === 'application/pdf') {
const encodedUrl = encodeURI(url)
const uploadFileId = await uploadPdf(
encodedUrl,
userId,
articleSavingRequestId
)
const uploadFileId = await uploadPdf(url, userId, articleSavingRequestId)
const uploadedPdf = await sendCreateArticleMutation(userId, {
url: encodedUrl,
articleSavingRequestId,