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
Multer does not save a file when I run it by forever.js #214
Comments
It was path problem. When I run with forever.js dest: './public/uploads/', './' means a root directory of a SYSTEM. |
I'm having the same problem. How did you specify the correct path for forever to understand? I tried ./ and also _dirname, but forever tries to do it on the root of the disk. If I just execute it with node it works fine. |
Hi Navarro, As you’ve tried _dirname didn’t work for me as well. So I just wrote full path of the directory like '/home/gblue1223/www/upload’ Cheers, skype: gblue1223
|
@gblue1223 thanks for your response! Ended up solving it by specifying the workingDir parameter when running forever:
When doing this, both _dirname and './' work as expected. |
Oh, it is a better solution. Thanks for the tip! — skype: gblue1223
|
version: 1.0.3
Configuration of multer
When I run my web server with below command
multer saves an upload file well to the upload directory but, when I run the server with forever.js, it doesn't.
I suspected 'make-middleware' so, I debugged the file but, it seems working well, 'busboy.on('finish')' function called well.
Besides, I've tried to duplicate the uploaded file to another directory, it just worked but, the file didn't show up in the upload directory.
I even tried to find the file with 'find' command on a linux console but it was just nowhere.
What should I look at?
The text was updated successfully, but these errors were encountered: