mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-02-10 18:05:10 +08:00
fix(nodejs): correct formidable 4 filepath in forcesave
This commit is contained in:
@ -721,7 +721,7 @@ app.post('/forcesave', async (req, res) => {
|
||||
res.end();
|
||||
return;
|
||||
}
|
||||
const filePath = files.file.path;
|
||||
const filePath = files.file.filepath || files.file[0].filepath;
|
||||
const data = fileSystem.readFileSync(filePath);
|
||||
await req.DocManager.forcesaveFile(data, fName, fileUtility.getFileExtension(fName), uAddress);
|
||||
fileSystem.unlinkSync(filePath);
|
||||
|
||||
Reference in New Issue
Block a user