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

fix sendFile deprecated message. #7

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

ttousai
Copy link

@ttousai ttousai commented Oct 2, 2014

No description provided.

ttousai and others added 3 commits October 2, 2014 19:15
Just replacing "sendfile" with "sendFile" results in "TypeError: path must be absolute or specify root to res.sendFile". I think specifying an absolute path utilizing the __dirname Node.js global is best, rather than introducing the options object for sendFile.
http://nodejs.org/docs/latest/api/globals.html#globals_dirname
http://expressjs.com/api.html#res.sendFile
sendFile requires absolute path or specified root
TheSachinSBhat added a commit to TheSachinSBhat/chat-example-1 that referenced this pull request Feb 7, 2017
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

Successfully merging this pull request may close these issues.

2 participants