You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ In order to use the SDK, you need to provide it with a few configuration paramet
50
50
51
51
`publicKey` and `urlEndpoint` are mandatory parameters for SDK initialization.
52
52
`authenticationEndpoint` is essential if you want to use the SDK for client-side uploads.
53
-
`transformationPosition` is optional. The default value for the parametere is `path`. Acceptable values are `path` & `query`
53
+
`transformationPosition` is optional. The default value for the parameter is `path`. Acceptable values are `path` & `query`
54
54
55
55
_Note: Do not include your Private Key in any client side code, including this SDK or its initialization. If you pass the `privateKey` parameter while initializing this SDK, it throws an error_
56
56
@@ -172,7 +172,7 @@ The component tries to keep the it simple, it loads a lower quality image using
172
172
173
173
## File Upload
174
174
#### ik-upload
175
-
The SDK provides a simple Component to upload files to the ImageKit Media Library. It accepts `fileName` parameter as a prop. The file parameter is provided as an input from the user.
175
+
The SDK provides a simple Component to upload files to the ImageKit Media Library. It has an attribute called `fileName`which is used by SDK for `fileName`parameter required to upload. The `file` parameter is provided as an input from the user.
176
176
177
177
Also make sure that you have specified `authenticationEndpoint` during SDK initialization. The SDK makes an HTTP GET request to this endpoint and expects a JSON response with three fields i.e. `signature`, `token` and `expire`.
178
178
@@ -185,4 +185,4 @@ Sample Usage
185
185
<ik-upload fileName="my-upload"/></ik-upload>
186
186
```
187
187
188
-
`ik-upload` component accepts all the parameters supported by the [ImageKit Upload API](https://docs.imagekit.io/api-reference/upload-file-api/client-side-file-upload#request-structure-multipart-form-data) as props e.g. `tags`, `useUniqueFileName`, `folder`, `isPrivateFile`, `customCoordinates` etc.
188
+
`ik-upload` component accepts all the parameters supported by the [ImageKit Upload API](https://docs.imagekit.io/api-reference/upload-file-api/client-side-file-upload#request-structure-multipart-form-data) as attributes e.g. `tags`, `useUniqueFileName`, `folder`, `isPrivateFile`, `customCoordinates` etc.
0 commit comments