joschan21 / quill

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

acces denied when rendering pdf #59

Open jumaediahsan opened 9 months ago

jumaediahsan commented 9 months ago

image why ?

jumaediahsan commented 9 months ago

@joschan21

anand-mukul commented 9 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 9 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 9 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 6 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 6 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 6 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 6 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