Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with loading pdf #60

Open
Obercasa13 opened this issue Jan 19, 2024 · 4 comments
Open

Issue with loading pdf #60

Obercasa13 opened this issue Jan 19, 2024 · 4 comments

Comments

@Obercasa13
Copy link

Hi, i get an error with loading the pdf. the console says:

Failed to load resource: the server responded with a status of 403 (Forbidden)
app-index.js:32 Warning: UnexpectedResponseException: Unexpected server response (403) while retrieving PDF "https://uploadthing-prod.s3.us-west-2.amazonaws.com/d14e2e5e-8498-4641-a6bd-553f2459ce98-f1scep.pdf".

!
giterror

@Obercasa13
Copy link
Author

anyone ideas to fix that :)?

@sanjayio
Copy link

Change these url's back to file.url

@ijaspreetsinghh
Copy link

ijaspreetsinghh commented Feb 16, 2024

Im facing the same issue,

changing file.url in [FileId]/page.tsx to https://utfs.io/f/${file.key} worked for me.
Here full code

In [FileId]/page.tsx, where you are passing url ,do <PdfRenderer url={https://utfs.io/f/${file.key}} />

<PdfRenderer url={https://utfs.io/f/${file.key}} />
##PdfRendered
image
and on the PdfRenderer simply the url param. Here key look like 2fafdade-aefc-a08-r2lbah.pdf. so the new url becomes https://utfs.io/f/2fafdade-aefc-a08-r2lbah.pdf

@Zem-0
Copy link

Zem-0 commented May 19, 2024

can you specify file location

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants