(content-type-extension content-type)Returns the filename extension from content-type.
Returns the filename extension from `content-type`.
(create-profile-photo! {:keys [db] :as service} user photo & [opts])Create the profile photo of user.
Create the profile `photo` of `user`.
(decode-photo service {:keys [id source-url] :as photo} response)Decode the download response of photo.
Decode the download `response` of `photo`.
(download-photo service {:keys [id source-url] :as photo})Download the original image of photo.
Download the original image of `photo`.
(photo-storage-key service photo content-type)Return the storage key for photo and content-type.
Return the storage key for `photo` and `content-type`.
(photo-storage-url service photo content-type)Return the storage url for photo, and content-type.
Return the storage url for `photo`, and `content-type`.
(save-photo-to-db {:keys [db] :as service} photo)Save the image to the database.
Save the `image` to the database.
(save-photo-to-storage service photo)Upload the image.
Upload the `image`.
(service & [opts])Returns a photo service component.
Returns a photo service component.
(-import! service photo opts)cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |