Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Odd Image Loading Question - Images Return 403 After 1-2 Hours of Loading Fine. URL Expires?
I have a django site that allows image uploads from the admin panel via summernote. These images are all stored in a Spaces folder. There are no problems uploading images.
After uploading I can view the site and the images are there with no problem. However if I was 1-2 hours and check again, the pictures return a 403 error.
While it’s up I can copy the image link and put it into a URL and the picture loads fine. Once the 1-2 hours is up, that doesn’t work anymore.
It’s like there is some sort of active timer set on the photos or something?
Looking at my URL for the image it does seem to have some sort of expiration code. But I’m not sure how to make that go away.
https://sfo3.digitaloceanspaces.com/<my project folder>/django-summernote/2021-09-25/a361e3aa-ea6e-4328-92b9-e9ffc2cc3ca3.png?AWSAccessKeyId=<access id> &Signature=><signature>&Expires=1632614952