expressjs / expressjs/multer

Folder cannot be deleted

Open
#1,271 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
12.1k
Forks
1.1k
Avg merge
8d 2h
Merged PRs (30d)
21

Description

I used this code in my project, which generated a folder in the project directory, but this folder cannot be deleted
```js
//File upload
const upload = multer({dest: 'upload '});
File.post('/put',upload.single('file'),(req,res)=>{
...
})
```
Windows cannot be deleted, and neither can PowerShell
![PixPin_2024-08-22_11-08-44](https://github.com/user-attachments/assets/42caeb8f-a8bb-45ab-868d-75794cd09400)
![PixPin_2024-08-22_11-15-09](https://github.com/user-attachments/assets/66377a8d-1367-457c-9063-36589cd117f7)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.