Answers for "sendfile in node js"

1

sendfile in node js

The res.sendFile() function basically transfers the file at the given path and 
it sets the Content-Type response HTTP header field based on the filename 
extension.

Syntax:

res.sendFile(path [, options] [, fn])
Posted by: Guest on August-10-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language