Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

上传错误 #5

Open
LanXins opened this issue Sep 14, 2020 · 2 comments
Open

上传错误 #5

LanXins opened this issue Sep 14, 2020 · 2 comments

Comments

@LanXins
Copy link

LanXins commented Sep 14, 2020

`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
Copy link

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

@LanXins
Copy link
Author

LanXins commented Sep 16, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants