I'm trying to delete file/s in uploadcare rest api using jquery ajax. Here is my current codes for jquery:
$.ajax({
url: "http://api.uploadcare.com/files/" + $("#photoguid").val() + "/",
type: "DELETE",
contentType: "application/json"
});
My question is how to implement it properly because every time I call this, it redirects me to login page, that's what I see when checking in fiddler and I'm not sure where to put the authorization. I'm only using free trial for this.