Hey! Thanks for fantastic product.
I have a question about XHR uploader. My file upload endpoint returns an id of the uploaded file and I expect this value to be available somewhere in the file state and reachable from post-processors. Though, in Uppy 4.0 I don’t see this response in the file state. Am I missing something?
Hi, you can listen to upload-success
or find it in file.meta.response.body
. On 4.x, make sure to pass your body generic to Uppy.
// Set this to `any` or `Record<string, unknown>`
// if you do not set any metadata yourself
type Meta = { something: string };
type Body = { id: string, url: string }
const uppy = new Uppy<Meta, Body>()