Hi, this has not been implemented yet. You might be able to do this yourself if you are not setting a chunkSize on the client (so everything is done over one request), use the Creation with Upload extension, and read the entire body in onUploadCreate and try to verify it.
However I haven’t looked closely enough into the Checksum extension to know the edge cases with this approach rather than building it into the server itself.
Thanks alot for your reply. I’m not sure about the phasing here and in the docs. Do I need to do anything to be able to use Creation with Upload extension, or does the tus-node-server implement it by default? I can’t see any example of how to use it.
For example, this is my init function:
const tusDatafileServer = new Server({
path: '/upload',
datastore: datafileS3Store,
// callback provided by tus, gets called for each upload
async onUploadCreate(req, res, upload) {
return res;
},
})
I’m not chunking anything and I’m not seeing any body in req, unless its called something else? req.headers seems to read fine.
Setting uploadDataDuringCreation: true should be enough to cause tus-js-client to put the upload data in the POST request (instead of the PATCH request).