mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
do not encode url when getting file data
This commit is contained in:
parent
d4e487e181
commit
c1d5ec722f
1 changed files with 2 additions and 6 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue