It’s my understanding that when you upload a file or image to a Tape record, if you get the record after the fact, the JSON will include two CDN links for the file/image, one for downloading and one for viewing. I must say, I love this feature because it gives easy access to files from outside Tape when building integrations.
It seems that this link is set to expire after 6 days. I wanted to ask a couple of questions, if anyone can help me out:
Do I have the expiry time right?
Will the link regenerate itself every time the image/file is fetched via the API or do we have to wait until after the expiry date/time to regenerate?
The important parts of these are: Date=20241219T131311Z&X-Amz-Expires=518400 from the first Date=20241219T131411Z&X-Amz-Expires=518400 from the second
this is saying that the link will expire 518400 seconds after the date/time which if you look really carefully the second is exactly one minute later than the first.
This is why you can’t really host images directly on S3 storage and you need to use things like Cloudinary or twicpics I use Cloudinary.
Great suggestions @Jason ! I also suggest DigitalOcean Spaces for hosting media and images, as an S3 bucket only costs $5 a month, it’s VERY affordable.