Delete file from s3 using presigned urls
I am trying to delete files from my bucket using a presigned url, so far this is my api handler:
In my frontend I am doing this:
I am able to delete the file from my database, but not from my bucket not sure what I am missing, I should have the properly policy in my bucket.
2 Replies
Not sure of why the presigned url doesn't work, but is there a reason why you don't delete it directly in the handler after you delete the data from database?
@mmurto yes that actually did it, not sure I just thought of using a presigned since I used it in the upload aswell, yeah deleting it directly worked ty.