uppy patch code example
Example 1: how to change endpoint for each image upload uppy
const file = uppy.getFile(fileID)
uppy.setFileState(fileID, {
xhrUpload: {
...file.xhrUpload,
endpoint: `https://endpoint/?filename=${encodeURIComponent(file.meta.name)}`
}
})
Example 2: uppy tus
const Tus = Uppy.Tus