Skip to content Skip to sidebar Skip to footer

Customer Parameter Are Not Going Through For File Delete

I have setup to directly upload image to s3 bucket and I am using fine uploader for that. I am trying to send filename as parameter (to end point) while deleting a file. Given belo

Solution 1:

You are not using the jQuery wrapper correctly. This is one of many reasons why I have suggested avoiding jQuery and the jQuery wrapper, as the "vanilla" API is much more intuitive. You've left out some code, but it looks like you are actually declaring your event handler as a property of the callbacks config object, which means you can avoid the jQuery wrapper entirely.

onDelete: function(id) {
    var name = this.getName(id);
    this.setDeleteFileParams({filename: name}, id);
}

But this code is not necessary, as Fine Uploader S3 sends the name of the object in S3 as a "key" parameter with the delete request.

Post a Comment for "Customer Parameter Are Not Going Through For File Delete"