Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 546 Bytes

File metadata and controls

30 lines (18 loc) · 546 Bytes

Stream File Request

(also provided Traditional Chinese version document README-CH.md.)

Demonstrates how to upload files and stream them to a server using Node.js. Help you test stream file api.

Version

  • Node.js v20.11.1

Run

install dependencies

npm install

send request with token

node streamFileRequest.js <filePath> <formUrl> <token>

get token and send request

node getTokenAndStreamFileRequest.js <tokenUrl> <username> <password> <filePath> <formUrl>