Check if Presigned URL file is uploaded

How can I check if a file is uploaded using presigned url without workers (I have 100 buckets).
2 Replies
Chaika
Chaika8mo ago
What's the context? Why not just send a HEAD request to the file? https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadObject.html
HeadObject - Amazon Simple Storage Service
The HEAD operation retrieves metadata from an object without returning the object itself. This operation is useful if you're interested only in an object's metadata.
Chaika
Chaika8mo ago
Cloudflare also recently launched Event Notifications which can send an event to your queue when a file changes in a bucket: https://developers.cloudflare.com/r2/buckets/event-notifications/ could be useful depending on your use case
Cloudflare Docs
Event notifications · Cloudflare R2 docs
Event notifications send messages to your queue when data in your R2 bucket changes. You can consume these messages with a consumer Worker or pull …
Want results from more Discord servers?
Add your server