I need help. I'm working with the AWS dropzone.js, c #, and S3 library. I did the upload part of files worked right. Now I need to remove the files from the server if it removes the front end that already works because the library itself supplies. I have the method in C # that removes
public void DeleteStreamToStorage( string remotefilePath, string schema){
using (var client = S3Client())
{
var deleteRequest = new DeleteObjectRequest
{
BucketName = "teste",
Key = $"{schema}/{remotefilePath}"
};
var response2 = client.DeleteObject(deleteRequest);
}
}
I need to call this method in the dropzone.js method. I already studied the js code but I'm not sure how to do it. If anyone can help me, thank you in advance. Thanks for listening!