richardgirges / express-fileupload

Simple express file upload middleware that wraps around busboy
MIT License
1.52k stars 261 forks source link

Set createParentPath=true by default #223

Closed vrg-success closed 4 years ago

vrg-success commented 4 years ago

Hi, I spend to many times to understand why I get Error:

Error: ENOENT: no such file or directory, open 'C:\\Users\\someDir\\0fj8gv_yyc1rutram4w7z7n_ziw.jpg'] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'open',
  path: 'C:\\Users\\someDir\\0fj8gv_yyc1rutram4w7z7n_ziw.jpg'
}

Please set value false by default for option createParentPath, I think it will help of people

RomanBurunkov commented 4 years ago

Option described in the docs and it also possible that for many projects users don't need other module to create paths. So I do not see any necessity to set it true by default.