Skip to content

Commit

Permalink
added parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
ANKUR DWIVEDI authored and ANKUR DWIVEDI committed Aug 23, 2024
1 parent 26f9bdf commit 2283349
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,8 @@ imagekit.upload({
}
]
},
checks={`"file.size" < "1mb"`} // To run server side checks before uploading files. Notice the quotes around file.size and 1mb.
checks: {`"file.size" < "1mb"`}, // To run server side checks before uploading files. Notice the quotes around file.size and 1mb.
isPublished: true
}, function(error, result) {
if(error) console.log(error);
else console.log(result);
Expand Down Expand Up @@ -524,15 +525,10 @@ imagekit.updateFileDetails("file_id", {
// Using Promises

imagekit.updateFileDetails("file_id", {
tags : ['image_tag'],
customCoordinates : "10,10,100,100",
extensions: [
{
name: "google-auto-tagging",
maxTags: 5,
minConfidence: 95
}
]
publish: {
isPublished: true,
includeFileVersions: true
}
}).then(response => {
console.log(response);
}).catch(error => {
Expand Down

0 comments on commit 2283349

Please sign in to comment.