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

How to put file using subdir with sub-direcory (multi-level-directory) #55

Open
vafrcor opened this issue Feb 11, 2016 · 3 comments
Open

Comments

@vafrcor
Copy link

vafrcor commented Feb 11, 2016

When we create a big scale web-app, we need directory with good structure.
In this case, I wanted to put my file into "/upload/2016/02/12".
But the HTTP POST request show an error.
This is caused by fs.mkdir() can't create multi-level directory.

My Suggestion, use "mkdirp" node-module to solve this.

Thank you.

@NicolasRitouet
Copy link
Owner

That's indeed a good idea.
unfortunately, I don't have time to work on this yet, but you are more than welcome to send us a pull request.

@vafrcor
Copy link
Author

vafrcor commented Mar 4, 2016

Thank you for reply.

@tenowg
Copy link

tenowg commented May 10, 2016

@vafrcor @NicolasRitouet this is actually implemented in my porposal. I had to re-write mkdirp as it out of date for node, but it is now included.

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

No branches or pull requests

3 participants