Liking cljdoc? Tell your friends :D

boundary.storage.shell.http-handlers

HTTP handlers for file upload and download operations.

Provides Ring-compatible handlers for file operations.

HTTP handlers for file upload and download operations.

Provides Ring-compatible handlers for file operations.
raw docstring

delete-file-handlerclj

(delete-file-handler storage-service)

Handler for file deletion endpoint.

Path parameter:

  • file-key: Storage key of the file
Handler for file deletion endpoint.

Path parameter:
- file-key: Storage key of the file
sourceraw docstring

download-file-handlerclj

(download-file-handler storage-service)

Handler for file download endpoint.

Path parameter:

  • file-key: Storage key of the file
Handler for file download endpoint.

Path parameter:
- file-key: Storage key of the file
sourceraw docstring

get-file-url-handlerclj

(get-file-url-handler storage-service)

Handler for getting a file URL (direct or signed).

Path parameter:

  • file-key: Storage key of the file

Query parameter:

  • expiration: Expiration time in seconds (optional, default: 3600)
Handler for getting a file URL (direct or signed).

Path parameter:
- file-key: Storage key of the file

Query parameter:
- expiration: Expiration time in seconds (optional, default: 3600)
sourceraw docstring

storage-routesclj

(storage-routes storage-service)
(storage-routes storage-service {:keys [base-path] :or {base-path "/storage"}})

Normalized module :api routes for storage endpoints.

Returns the framework's normalized route format (a vector of {:path … :methods {…}} maps), NOT Reitit tuples — API versioning prepends /api/v1, so paths here must NOT include an /api prefix (see AGENTS pitfall #9).

Parameters:

  • storage-service: Instance of IStorageService
  • options: Map with optional :base-path (default: "/storage")
Normalized module `:api` routes for storage endpoints.

Returns the framework's normalized route format (a vector of
`{:path … :methods {…}}` maps), NOT Reitit tuples — API versioning prepends
`/api/v1`, so paths here must NOT include an `/api` prefix (see AGENTS
pitfall #9).

Parameters:
- storage-service: Instance of IStorageService
- options: Map with optional :base-path (default: "/storage")
sourceraw docstring

upload-file-handlerclj

(upload-file-handler storage-service)

Handler for file upload endpoint.

Expects multipart/form-data with:

  • file: The file to upload (required)
  • path: Storage path (optional)
  • visibility: 'public' or 'private' (optional, default: private)

Query parameters:

  • max-size: Maximum file size in bytes
  • allowed-types: Comma-separated list of allowed MIME types
  • allowed-extensions: Comma-separated list of allowed extensions
Handler for file upload endpoint.

Expects multipart/form-data with:
- file: The file to upload (required)
- path: Storage path (optional)
- visibility: 'public' or 'private' (optional, default: private)

Query parameters:
- max-size: Maximum file size in bytes
- allowed-types: Comma-separated list of allowed MIME types
- allowed-extensions: Comma-separated list of allowed extensions
sourceraw docstring

upload-image-handlerclj

(upload-image-handler storage-service)

Handler for image upload endpoint with processing options.

Expects multipart/form-data with:

  • file: The image file to upload (required)
  • path: Storage path (optional)
  • visibility: 'public' or 'private' (optional)
  • create-thumbnail: 'true' to create thumbnail (optional)
  • thumbnail-size: Thumbnail max dimension in pixels (optional, default: 200)
Handler for image upload endpoint with processing options.

Expects multipart/form-data with:
- file: The image file to upload (required)
- path: Storage path (optional)
- visibility: 'public' or 'private' (optional)
- create-thumbnail: 'true' to create thumbnail (optional)
- thumbnail-size: Thumbnail max dimension in pixels (optional, default: 200)
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close