Skip to content

Commit

Permalink
Make file id available during stream
Browse files Browse the repository at this point in the history
  • Loading branch information
TonsOfFun committed May 31, 2014
1 parent 98bf8b2 commit cc0f62f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ function onPart (part) {
: undefined
var ws = form.__gridstream.createWriteStream(file.path, options);

file.id = ws.id;

ws.on('progress', onprogress);
ws.on('drain', resume);
ws.once('error', done);
Expand Down

0 comments on commit cc0f62f

Please sign in to comment.