node.js怎么获取文件上传的进度
发布于 11 年前 作者 buctyoyo 7025 次浏览 最后一次编辑是 8 年前

{ fields: { title: ‘Hello World’ }, files: { upload: { size: 1558, path: ‘/tmp/1c747974a27a6292743669e91f29350b’, name: ‘us-flag.png’, type: ‘image/png’, lastModifiedDate: Tue, 21 Jun 2011 07:02:41 GMT, _writeStream: [Object], length: [Getter], filename: [Getter], mime: [Getter] } } }

这是请求的内容,请问一下,我怎么判断这个文件有没有上传完成到服务器,求大神教,纠结很久了,

3 回复

formidable 可以监测上传的进度。你找找例子吧。

This option is useful if you need to bind to the “progress” event, for example.

回到顶部