Jonathan Brizio Jonathan Brizio - 1 year ago 143
Javascript Question

Modify Param UUID Fine Uploader Javascript Upload Library

I'm using FineUploader in a new project, but the API that returns the information of the media content doesn't have the UUID field. My question is how to modify this param for another field of my JSON object.

To delete an image on my backend, I need to make a DELETE call to this URL:

Instead of the UUID param that put the library on the end of the route.

Thanks in advance.

Answer Source

You should be tracking the UUIDs server side. If you want to send additional data with the DELETE request, you can make use of the setDeleteFileParams API method. Note that these parameters will be added as query parameters to the URL. The path will still contain the UUID, as this is the ID of the resource to delete.

Alternately, your server can override Fine Uploader's chosen UUID by returning a newUuid JSON property in the response to an upload request.