403 error on download S3 file (DigitalOcean)

So thanks to some of the awesome posts out here (and after waaaay too much tinkering) I have managed to make a setup where I can upload files to Digital Ocean Spaces S3 and present users with a table with download buttons per row to download some files from S3.

The way it works is:

Now this actually works after quite a few hours of trying and changing stuff around. However, I get this 403 error. So the file DOES download, which is GREAT! :tada: :partying_face: But obviously a 403 error would be nice to get rid of.

Any advice on how to get rid of the 403 would be highly appreciated.

Also, if anyone wants some more details on how to get this S3 thing up and running, I’m more than happy to share some details and/or screenshots. (My files are pdfs generated with a tFPDF script).

Thanks!

Community Page
Last updated: