Skip to content

Commit 2e7bead

Browse files
ANKUR DWIVEDIANKUR DWIVEDI
ANKUR DWIVEDI
authored and
ANKUR DWIVEDI
committed
added checks parameter
1 parent f3ef08a commit 2e7bead

File tree

4 files changed

+6446
-10891
lines changed

4 files changed

+6446
-10891
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,7 @@ The SDK provides a component to upload files to the [ImageKit Media Library](htt
563563
| urlEndpoint | String | Optional. For example, https://ik.imagekit.io/your_imagekit_id/endpoint/ |
564564
| publicKey | String | Optional |
565565
| authenticator | ()=>Promise<{signature:string,token:string,expiry:number}> | Optional |
566+
| checks | String | Optional. Run server-side checks before uploading files. For example, `"'file.size' < '1mb'"` will check if the file size is less than 1 MB. Check [Upload API docs](https://imagekit.io/docs/api-reference/upload-file/upload-file#upload-api-checks) to learn more. Notice the quotes around `file.size` and `1mb`; otherwise, you will get an error `Your request contains invalid syntax for the checks parameter.` |
566567

567568
Note: `urlEndpoint` and `publicKey` must be present in the attribute for them to take effect. Otherwise, the SDK will fall back to the values specified in `app.module.ts`.
568569

0 commit comments

Comments
 (0)