Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Media

The Media management system in Kinesis API provides a centralized location to upload, manage, and utilize media files across your API and web interface. This page explains how to use the Media functionality to handle images, videos, documents, and other file types.

Accessing Media Management

To access the Media management interface:

  1. Log in to your Kinesis API account
  2. Navigate to /web/media in your browser or click “Media” in the navigation menu

Media Interface Overview

The Media management interface includes:

  • A searchable list of all media files in the system
  • Pagination controls for navigating through large media collections
  • Tools for uploading new media
  • Preview functionality for existing media
  • File type badges for easy identification
  • Copy link buttons for easy sharing
  • Delete options for administrators

Uploading Media

All authenticated users can upload media files:

  1. Click the “Upload Media” button at the top of the page
  2. A modal will appear prompting you to select a file
  3. Choose a file from your device
  4. The file will be uploaded and added to your media library

Supported File Types

Kinesis API supports various file types, categorized as follows:

CategoryDescriptionExamples
IMAGEImage filesJPG, PNG, GIF, WebP, SVG
VIDEOVideo filesMP4, WebM, OGG
DOCUMENTDocument filesPDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, TXT, CSV, RTF
OTHERAny other file typeZIP, JSON, XML, etc.

The file type is automatically determined based on the file’s content type during upload. The file size is automatically captured from disk after upload and stored with each media record. File sizes are displayed in a human-readable format (B, KB, MB, GB) in the media management UI.

The maximum file size is determined by your system configuration (default: 2MB).

Viewing Media

The main page displays a list of all media files with:

  • A thumbnail preview (for images) or file type icon
  • The media ID
  • The filename
  • A file type badge (IMAGE, VIDEO, DOCUMENT, OTHER)
  • The file size (automatically captured on upload)
  • Action buttons

Previewing Media

To preview a media file:

  1. Click on the file thumbnail or name
  2. A modal will open showing a larger preview:
    • Images are displayed inline
    • Videos are shown with playback controls
    • Documents and other files show a link to open/download
  3. Click outside the modal or the X button to close it

Managing Media Files

Filtering Media

To find specific media files:

  1. Use the filter box at the top of the media list
  2. Type any part of the filename or ID
  3. The list will automatically filter to show matching files

The media fetch API also supports filtering by file type using the file_type query parameter:

GET /media/fetch?uid=0&file_type=IMAGE&limit=10&offset=0

Accepted values: IMAGE, VIDEO, DOCUMENT, OTHER. Omit the parameter to fetch all media regardless of type.

Pagination

For systems with many media files:

  1. Navigate between pages using the pagination controls
  2. The page displays up to 10 media files at a time

Deleting Media

Users with ROOT or ADMIN roles can delete media files:

  1. Click the delete button (trash icon) next to the media file
  2. A confirmation modal will appear showing a preview of the file
  3. Confirm the deletion

⚠️ Warning: Deleting a media file is permanent and will remove it from all places where it’s being used. Ensure the file is no longer needed before deletion.

Access Control

Media management follows these permission rules:

RoleView MediaUpload MediaDelete Media
ROOT
ADMIN
AUTHOR
VIEWER

Public Access to Media

Media files uploaded to Kinesis API are publicly accessible via their direct URLs. This allows you to:

  • Use media in public-facing API responses
  • Embed images in web pages
  • Link to downloadable files

Keep this in mind when uploading sensitive content—if a file shouldn’t be publicly accessible, consider encrypting it or storing it elsewhere.

Best Practices

  1. Use Descriptive Filenames: Clear filenames make media easier to find and manage
  2. Optimize Before Upload: Compress images and optimize files before uploading to save space
  3. Regular Cleanup: Periodically remove unused media to keep your library organized
  4. Secure Sensitive Content: Remember that uploaded media is publicly accessible
  5. Backup Important Files: Keep backups of critical media files outside the system