Skip to main content

The Media Library

TriviaFlow distinguishes itself from simple quiz tools by implementing a Centralized Media Library. Instead of uploading files directly into questions (which creates duplicates and mess), you manage your assets in a dedicated space.

Why this approach?โ€‹

  1. Reusability: Upload a company logo once, and use it in 5 different questions.
  2. Performance: Keeps the database lean and efficient.
  3. Organization: You can search for images by name instead of browsing through folders.

๐Ÿ“ธ Adding Imagesโ€‹

Before you create a visually stunning question, you need to populate the library.

  1. Navigate to Media & Content > Image Library.
  2. Click Add Image.
  3. Title: Choose a descriptive name (e.g., "Movie Poster: Star Wars"). This name is what you will search for later.
  4. Image: Upload the actual file.
  5. Click Save.
Naming Convention

Use prefixes to group your images logically. For example:

  • Logo: MyCompany
  • Celeb: Brad Pitt
  • Geo: Map of Europe This makes finding them via the search bar much faster.

๐Ÿ”— Using Images in Questionsโ€‹

When you are editing a question, you will see two image fields: Question Image and Resolution Image.

Because the library might contain hundreds of images, we use a Smart Search Dropdown (Autocomplete).

  1. Click on the dropdown field.
  2. Start typing the Title of your image.
  3. Select the correct match from the list.

Note: You cannot upload new files directly from the Question screen. You must add them to the Library first.


๐Ÿงน Automatic Maintenanceโ€‹

TriviaFlow includes an automated janitor (django-cleanup) to keep your server storage healthy.

  • Auto-Delete: If you delete an image object from the Library, the actual file on the hard drive is physically deleted immediately.
  • Replacement: If you change an image file (e.g., upload a better version), the old file is removed.
Backup

Because files are deleted physically, they cannot be restored easily unless you have a backup. See the Backup & Restore guide for safety tips.