diff --git a/lib/uploadhandler.js b/lib/uploadhandler.js index ece4b55..4753e47 100644 --- a/lib/uploadhandler.js +++ b/lib/uploadhandler.js @@ -62,7 +62,7 @@ module.exports = function (options) { if (!--counter) { _.each(files, function (fileInfo) { this.initUrls(fileInfo); - this.emit('end', fileInfo); + this.emit('end', { "fileInfo": fileInfo, "req": this.req, "res": this.res }); }, this); this.callback({files: files}, redirect); } diff --git a/package.json b/package.json index ea657a4..d2724a3 100644 --- a/package.json +++ b/package.json @@ -1,14 +1,14 @@ { - "name": "jquery-file-upload-middleware", + "name": "jquery-file-upload-middleware-sarme", "author": "Aleksandr Guidrevitch ", - "description": "jQuery-File-Upload Express.js Middleware", + "description": "jQuery-File-Upload Express.js Middleware - sarme fork", "keywords": [ "jquery", "upload", "express", "middleware" ], - "version": "0.1.0", + "version": "0.1.1", "dependencies": { "formidable": ">=1.0.11", "imagemagick": ">=0.1.2", @@ -20,7 +20,7 @@ }, "repository": { "type": "git", - "url": "git://github.com/aguidrevitch/jquery-file-upload-middleware.git" + "url": "https://github.com/sarme/jquery-file-upload-middleware.git" }, "main": "./index.js", "readmeFilename": "README.md", @@ -28,6 +28,6 @@ "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, - "_id": "jquery-file-upload-middleware@0.1.0", + "_id": "jquery-file-upload-middleware-sarme@0.1.1", "license": "MIT" }