On Friday, October 3, 2014 9:27:10 AM UTC-4, [email protected] 
wrote:
>
> I trying to upload few files through one input[type=file] with attribue 
> 'multiple'. All work fine but 'finish' event firing before realy all work 
> done. Does anyone know how to fix it?
>
>
When the busboy instance emits `finish`, that means that all data has 
passed through (taking into account file stream backpressure). If it takes 
some time for the streams you are piping/writing to to close, busboy can't 
know for that so you have to track that manually. You can count the number 
of `close` events manually or maybe use a module like `async` to help 
simplify that logic.

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/36c1fd44-7795-41de-b908-ba3a5d565f4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to