Skip to content

Commit 5475c8c

Browse files
ANKUR DWIVEDIANKUR DWIVEDI
authored andcommitted
updated readme and version
1 parent 8cfd263 commit 5475c8c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,8 @@ imagekit.upload({
350350
value: 'w-100'
351351
}
352352
]
353-
}
353+
},
354+
checks={`"file.size" < "1mb"`} // To run server side checks before uploading files. Notice the quotes around file.size and 1mb.
354355
}, function(error, result) {
355356
if(error) console.log(error);
356357
else console.log(result);
@@ -376,7 +377,8 @@ imagekit.upload({
376377
value: 'w-100'
377378
}
378379
]
379-
}
380+
},
381+
checks={`"file.size" < "1mb"`}
380382
}).then(response => {
381383
console.log(response);
382384
}).catch(error => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "imagekit",
3-
"version": "5.0.2",
3+
"version": "5.1.0",
44
"description": "Offical NodeJS SDK for ImageKit.io integration",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

0 commit comments

Comments
 (0)