joschan21 / quill

Quill - A Modern SaaS-Platform Built With Next.js 13
1.91k stars 513 forks source link

acces denied when rendering pdf #59

Open jumaediahsan opened 10 months ago

jumaediahsan commented 10 months ago

image why ?

jumaediahsan commented 10 months ago

@joschan21

anand-mukul commented 10 months ago

@jumaediahsan Here is how you can do it:

  1. Don't update the package.json file.

Demo : PDF Ninja Demo

Note: Check out my repository for reference 👍

You can also refer to this link for other issues: PDF Ninja Repository

conradmugabe commented 10 months ago

This issue is arising due to the absence of authorization while fetching the file from AWS S3. The same bug also affects the 'onUploadComplete' callback.

To resolve this, go to 'UploadThing' and view an uploaded file. Copy the URL and use it as the base URL for the application. You can try using the following code snippet:

const url = 'https://utfs.io/f/' + file.key

jumaediahsan commented 10 months ago

This issue is arising due to the absence of authorization while fetching the file from AWS S3. The same bug also affects the 'onUploadComplete' callback.

To resolve this, go to 'UploadThing' and view an uploaded file. Copy the URL and use it as the base URL for the application. You can try using the following code snippet:

const url = 'https://utfs.io/f/' + file.key

thank you @conradmugabe

Sujan1714 commented 8 months ago

This issue is arising due to the absence of authorization while fetching the file from AWS S3. The same bug also affects the 'onUploadComplete' callback.

To resolve this, go to 'UploadThing' and view an uploaded file. Copy the URL and use it as the base URL for the application. You can try using the following code snippet:

const url = 'https://utfs.io/f/' + file.key

where i paste the url bro

conradmugabe commented 8 months ago

Check src/app/api/uploadthing/core.ts in this repo. You should see https://uploadthing-prod.s3.us-west-2.amazonaws.com/${file.key} twice.

Sujan1714 commented 8 months ago

Check src/app/api/uploadthing/core.ts in this repo. You should see https://uploadthing-prod.s3.us-west-2.amazonaws.com/${file.key} twice.

can you please show your code

Sujan1714 commented 8 months ago

Check src/app/api/uploadthing/core.ts in this repo. You should see https://uploadthing-prod.s3.us-west-2.amazonaws.com/${file.key} twice.

image