You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i use node:18.13.0 and express:4.18.2 to upload file, Uploading will fail between 5 minutes and 6 minutes.
Firstly, response will emit "close". Secondly, request will be aborted.
i think these changes will help and ensure that the file stream is properly closed and that errors are handled more gracefully, reducing the chances of upload failures.
if will not work please specifie more info
and info. about the content or format. which you trying to upload .
Activity
XiaoTYUT commentedon Aug 6, 2023
here is my test code
const app = express();
app.post('/_/file/upload/put_file', (req: Request, res: Response) => {
const fileStream = req.pipe(fs.createWriteStream('afse'));
});
});
const port = 4000;
app.listen(port, () => {
console.log(
${port});});
[-]timeout abnormal[/-][+]timeout abnormal [/+]XiaoTYUT commentedon Aug 6, 2023
i try to set request timeout and response timeout , but it is not useful
amitmumana commentedon Nov 26, 2023
Try this