# Media Management with Firebase

Our SaaS boilerplate includes a powerful media management feature that leverages Firebase Storage. This feature allows administrators to upload and manage media files that can be used throughout the application or even in external contexts.

#### Key Features

1. **Firebase Integration**: All media files are stored securely in Firebase Storage.
2. **Admin-Only Access**: Only users with administrator privileges can upload and manage media files.
3. **Global Accessibility**: Uploaded media can be used across the entire application or shared externally.

#### Using the Media Management Feature

As an administrator, you can access the media management feature through your admin dashboard. Here's how to use it:

1. **Accessing Media Management**:

   * Log in to your application using your admin account.
   * Navigate to the admin dashboard.
   * Look for the "Assets"  section.

   <figure><img src="/files/pIIuLQbmFr9ZP6jL1dcG" alt=""><figcaption></figcaption></figure>
2. **Uploading Media**:
   * In the assets section, you'll find an option to upload new files.
   * Select the file(s) you want to upload from your local machine.
   * The system will automatically upload the files to Firebase Storage.

<figure><img src="/files/N7JCEFkklUUJIatLsitC" alt=""><figcaption></figcaption></figure>

1. **Managing Uploaded Media**:
   * View a list of all uploaded media files.
   * Each file will have options to view, download, or delete.

#### Best Practices

* **File Types**: While Firebase Storage supports various file types, it's a good practice to limit uploads to common web-friendly formats (e.g., .jpg, .png, .gif for images; .mp4, .webm for videos).
* **File Sizes**: Be mindful of file sizes, especially for media that will be displayed on web pages. Large files can impact page load times.
* **Security**: Remember that while upload access is restricted to admins, the URLs generated for the files might be publicly accessible. Avoid uploading sensitive information as media files.

#### Technical Note

The Firebase Storage integration is already set up in the boilerplate. However, if you need to modify any Firebase-related configurations, you can find them in the relevant environment files and the Firebase initialization code in your application.

By leveraging this Firebase-powered media management system, you can easily handle all your application's media needs directly from the admin dashboard, ensuring that you have full control over the media content used across your SaaS platform.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://syndrom.gitbook.io/syndrom/basics/images-and-media.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
