DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
express download file
app
.
get
(
(
req
,
res
,
next
)
=>
{
res
.
download
(
'/file/to/be/downloaded.ext'
)
;
res
.
status
(
200
)
;
}
)
;
PREVIOUS
NEXT
Tagged:
#express
#download
#file
ADD COMMENT
Topic
COMMENT
Name
6+2 =
Submit