I have implemented discovery, getFileInfo, getFile and putFile in my own WOPI host. All are working fine except putFile.
When I change my document it is routed to my putFile function, but the body which is expected to have the file content, is empty!
Can anybody help why that happened?
route('POST', '/wopi/files/:fileId/contents', (req, res) => {
console.log('*********putFile routed*********')
if (req.body) {
console.dir( req.body)
res.sendStatus(200);
} else {
console.log('Not possible to get the file content.');
res.sendStatus(404);
}
});