1

By default, the progress event is only fired once a second.

import request from "superagent"
const req = request.post("https://example.net")
// files.forEach((file) => {
//   req.attach(file.name, file)
// })
req.on("progress", (event) => {
  console.log(event.percent) // This is only fired once a second
})
req.end()
sunknudsen
  • 6,356
  • 3
  • 39
  • 76

0 Answers0