Skip to content

Commit 4e4858d

Browse files
committed
Solved an issue where the data from the files were not being passed along.
1 parent 4d56c7d commit 4e4858d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/uploadhandler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,13 +217,13 @@ module.exports = function (options) {
217217
var fileName = options.uploadDir() + '/' + fileInfo.name;
218218
fs.readFile(fileName, _.bind(function(err, data) {
219219
if(!err) {
220-
this.uploadToS3(this.removeExtraSlashes(options.s3Url() + '/' + fileInfo.name, data));
220+
this.uploadToS3(this.removeExtraSlashes(options.s3Url() + '/' + fileInfo.name), data);
221221

222222
async.each(Object.keys(options.imageVersions), _.bind(function(version) {
223223
fileName = options.uploadDir() + '/' + version + '/' + fileInfo.name;
224224
fs.readFile(fileName, _.bind(function(err, data) {
225225
if(!err) {
226-
this.uploadToS3(this.removeExtraSlashes(options.s3Url() + '/' + version + '/' + fileInfo.name, data));
226+
this.uploadToS3(this.removeExtraSlashes(options.s3Url() + '/' + version + '/' + fileInfo.name), data);
227227
}
228228
}, this));
229229
}, this));

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"express",
99
"middleware"
1010
],
11-
"version": "0.0.3",
11+
"version": "0.0.4",
1212
"dependencies": {
1313
"async": "*",
1414
"aws-sdk": "^2.0.17",
@@ -30,6 +30,6 @@
3030
"scripts": {
3131
"test": "echo \"Error: no test specified\" && exit 1"
3232
},
33-
"_id": "jquery-cloud-file-upload-middleware@0.0.3",
33+
"_id": "jquery-cloud-file-upload-middleware@0.0.4",
3434
"license": "MIT"
3535
}

0 commit comments

Comments
 (0)