I am using php to create a presigned url and send that to front-end and that uploads directly to s3 using that presigned url. I want to secure and restrict that upload.
for example I have created a presigned url for file "stack.txt" and I want the upload to fail/restrict any other file of different name being uploaded to s3 bucket.
How can I implement that ?