fileUploadDemo icon indicating copy to clipboard operation
fileUploadDemo copied to clipboard

上传错误

Open LanXins opened this issue 4 years ago • 2 comments

`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 电脑

LanXins avatar Sep 14 '20 02:09 LanXins

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

Hsing-Wei avatar Sep 14 '20 14:09 Hsing-Wei

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

在 2020年9月14日,下午10:06,Jeremy Sham [email protected] 写道:

你要在 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.

LanXins avatar Sep 16 '20 01:09 LanXins