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?โ
- Reusability: Upload a company logo once, and use it in 5 different questions.
- Performance: Keeps the database lean and efficient.
- 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.
- Navigate to Media & Content > Image Library.
- Click Add Image.
- Title: Choose a descriptive name (e.g., "Movie Poster: Star Wars"). This name is what you will search for later.
- Image: Upload the actual file.
- Click Save.
Use prefixes to group your images logically. For example:
Logo: MyCompanyCeleb: Brad PittGeo: Map of EuropeThis 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).
- Click on the dropdown field.
- Start typing the Title of your image.
- 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.
Because files are deleted physically, they cannot be restored easily unless you have a backup. See the Backup & Restore guide for safety tips.