Skip to content

Commit 2283349

Browse files
ANKUR DWIVEDIANKUR DWIVEDI
authored andcommitted
added parameter
1 parent 26f9bdf commit 2283349

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

README.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,8 @@ imagekit.upload({
351351
}
352352
]
353353
},
354-
checks={`"file.size" < "1mb"`} // To run server side checks before uploading files. Notice the quotes around file.size and 1mb.
354+
checks: {`"file.size" < "1mb"`}, // To run server side checks before uploading files. Notice the quotes around file.size and 1mb.
355+
isPublished: true
355356
}, function(error, result) {
356357
if(error) console.log(error);
357358
else console.log(result);
@@ -524,15 +525,10 @@ imagekit.updateFileDetails("file_id", {
524525
// Using Promises
525526

526527
imagekit.updateFileDetails("file_id", {
527-
tags : ['image_tag'],
528-
customCoordinates : "10,10,100,100",
529-
extensions: [
530-
{
531-
name: "google-auto-tagging",
532-
maxTags: 5,
533-
minConfidence: 95
534-
}
535-
]
528+
publish: {
529+
isPublished: true,
530+
includeFileVersions: true
531+
}
536532
}).then(response => {
537533
console.log(response);
538534
}).catch(error => {

0 commit comments

Comments
 (0)