Permalink
Browse files

Corrected emitting of filestart event

On branch master
Your branch is ahead of 'origin/master' by 1 commit.
Changes to be committed:
modified:   examples/simple/simpleUpload.js
modified:   lib/formaline.js
  • Loading branch information...
1 parent 91143f7 commit 54bb639e7b6803a9e4d8eeac52fe097b71dc9858 @rootslab rootslab committed Nov 6, 2012
Showing with 6 additions and 6 deletions.
  1. +5 −5 examples/simple/simpleUpload.js
  2. +1 −1 lib/formaline.js
@@ -222,15 +222,15 @@ var http = require( 'http' ),
hi = function () {
form = null;
console.log( '\n\033[1;33mHi!, I\'m the callback function!\033[0m' );
- };
-
-server = connect( getHtmlForm , handleFormRequest );
+ },
+ port = 3001,
+ server = connect( getHtmlForm , handleFormRequest );
-server.listen( 3001 );
+server.listen( port );
log();
log( ' ->\033[1m started at: \033[32m' + new Date() + '\033[0m' );
-log( ' ->\033[1m listening on: \033[36mhttp://localhost:3000/\033[0m' );
+log( ' ->\033[1m listening on: \033[36mhttp://localhost:' + port + '/\033[0m' );
log( ' ->\033[1m upload directory is: \033[31m' + dir + '\033[0m' );
View
@@ -733,7 +733,7 @@ fproto.parseMultipartData = function ( chunk, cback ) {
lastModifiedDate : file.mtime,
sha1checksum : null
}
- } );
+ }, 1 );
apply( me.fileStream, cfg, true );

0 comments on commit 54bb639

Please sign in to comment.