简体   繁体   中英

Axios upload progress for PUT request in Node.js

I'm using axios to upload a file via a PUT request. Is there a way to show upload progress to the user while upload is ongoing. I tried onUploadPregress in config but it only works in the browser not in the node runtime.

If not axios then maybe I'll have to figure out a way to do it using the default http API that node offers.

got是一个很好的 NodeJS 的 HTTP 客户端,它也有一个进度事件

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM