Skip to content

Commit

Permalink
added checks parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
ANKUR DWIVEDI authored and ANKUR DWIVEDI committed Aug 5, 2024
1 parent f3ef08a commit 2e7bead
Show file tree
Hide file tree
Showing 4 changed files with 6,446 additions and 10,891 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,7 @@ The SDK provides a component to upload files to the [ImageKit Media Library](htt
| urlEndpoint | String | Optional. For example, https://ik.imagekit.io/your_imagekit_id/endpoint/ |
| publicKey | String | Optional |
| authenticator | ()=>Promise<{signature:string,token:string,expiry:number}> | Optional |
| 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.` |

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`.

Expand Down
Loading

0 comments on commit 2e7bead

Please sign in to comment.