File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -217,13 +217,13 @@ module.exports = function (options) {
217
217
var fileName = options . uploadDir ( ) + '/' + fileInfo . name ;
218
218
fs . readFile ( fileName , _ . bind ( function ( err , data ) {
219
219
if ( ! err ) {
220
- this . uploadToS3 ( this . removeExtraSlashes ( options . s3Url ( ) + '/' + fileInfo . name , data ) ) ;
220
+ this . uploadToS3 ( this . removeExtraSlashes ( options . s3Url ( ) + '/' + fileInfo . name ) , data ) ;
221
221
222
222
async . each ( Object . keys ( options . imageVersions ) , _ . bind ( function ( version ) {
223
223
fileName = options . uploadDir ( ) + '/' + version + '/' + fileInfo . name ;
224
224
fs . readFile ( fileName , _ . bind ( function ( err , data ) {
225
225
if ( ! err ) {
226
- this . uploadToS3 ( this . removeExtraSlashes ( options . s3Url ( ) + '/' + version + '/' + fileInfo . name , data ) ) ;
226
+ this . uploadToS3 ( this . removeExtraSlashes ( options . s3Url ( ) + '/' + version + '/' + fileInfo . name ) , data ) ;
227
227
}
228
228
} , this ) ) ;
229
229
} , this ) ) ;
Original file line number Diff line number Diff line change 8
8
" express" ,
9
9
" middleware"
10
10
],
11
- "version" : " 0.0.3 " ,
11
+ "version" : " 0.0.4 " ,
12
12
"dependencies" : {
13
13
"async" : " *" ,
14
14
"aws-sdk" : " ^2.0.17" ,
30
30
"scripts" : {
31
31
"test" : " echo \" Error: no test specified\" && exit 1"
32
32
},
33
- "_id" : " jquery-cloud-file-upload-middleware@0.0.3 " ,
33
+ "_id" : " jquery-cloud-file-upload-middleware@0.0.4 " ,
34
34
"license" : " MIT"
35
35
}
You can’t perform that action at this time.
0 commit comments