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
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ config.imagekit={
63
63
}
64
64
```
65
65
66
-
You need to create an uploader to manage file. To create an uploader, use this command inside the project directory.
66
+
You can create a carrierwave uploader in order to attach pictures to your database objects as their attributes. To upload images without designating them as database attributes, read the section on File Upload below.
67
67
```bash
68
68
rails g uploader <Uploading_attribute_name>
69
69
# For example if you want to create uploader for Avatar attribute then use
@@ -312,6 +312,7 @@ transformation code from ImageKit docs as the name when using in the `url` funct
312
312
| original | orig |
313
313
314
314
## File Upload
315
+
This method can be used to directly upload images to your ImageKit Media Library, without giving it the designation of an attribute of any database object.
315
316
316
317
The SDK provides a simple interface using the `.upload()` method to upload files to the ImageKit Media library. It
317
318
accepts all the parameters supported by the [ImageKit Upload API](https://docs.imagekit.io/api-reference/upload-file-api/server-side-file-upload).
0 commit comments