jiaozitang / fileUploadDemo

Node 实现大文件分片上传、断点续传
142 stars 55 forks source link

上传错误 #5

Open LanXins opened 4 years ago

LanXins commented 4 years ago

`nodeServer/uploads/0e1ce5d141dbc485e222626af2be5887 events.js:200 throw er; // Unhandled 'error' event ^

Error: ENOENT: no such file or directory, open 'nodeServer/tmp/upload_3ed12bdb894b79381c214cc0fc4ad0d7' Emitted 'error' event on WriteStream instance at: at internal/fs/streams.js:294:12 at FSReqCallback.oncomplete (fs.js:146:23) { errno: -2, code: 'ENOENT', syscall: 'open', path: 'nodeServer/tmp/upload_3ed12bdb894b79381c214cc0fc4ad0d7' }`

操作过程: 1. npm i -> 2.npm run start -> 3.上传文件(jpg图片) -> 4.前台显示 (校验文件进度 100% -> 上传文件进度 0% ) -> 5.后台报错 上面是报错提示, 我是 mac 电脑

Hsing-Wei commented 4 years ago

你要在 nodeServer 下创建 tmp 和 uploads 子目录

LanXins commented 3 years ago

如你所说 已经解决问题 非常感谢

在 2020年9月14日,下午10:06,Jeremy Sham notifications@github.com 写道:

你要在 nodeServer 下创建 tmp 和 uploads 子目录

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jiaozitang/fileUploadDemo/issues/5#issuecomment-692075509, or unsubscribe https://github.com/notifications/unsubscribe-auth/AINRUVQKZKR2GSLIE4JL7HTSFYPO3ANCNFSM4RLBNO4Q.