CNode

node.js怎么获取文件上传的进度

Bbuctyoyo发布于13 年前最后回复13 年前4 回复7630 浏览0 收藏

{ 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)

L
leapon#1·13 年前

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

F
fengmk2#2·13 年前

defer 参数

multipart.js#L43

F
fengmk2#3·13 年前

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

参与回复
登录后即可参与回复。登录