Mentor LMS Docs
Configuration

Storage Setup

Configure local, Amazon S3, or Cloudflare R2 storage for Mentor LMS course files and media.

Mentor LMS supports multiple storage options for course files, videos, and other media content.

Accessing Storage Settings

  1. Log in to your admin dashboard
  2. Navigate to SettingsStorage Settings

Storage Settings

Available Storage Options

Local Storage

Stores all files on your web server. Suitable for smaller installations or when starting out.

Pros: No additional configuration, no extra costs, simple management

Cons: Limited by server disk space, may affect server performance with many files

Amazon S3 Storage

Store files on Amazon's scalable cloud storage. Recommended for production environments.

Pros: Virtually unlimited capacity, better performance, CDN integration, high reliability

Cons: Requires AWS account, costs based on usage

Cloudflare R2 Storage

S3-compatible object storage with zero egress fees.

Pros: No egress/bandwidth charges, competitive pricing, global distribution

Cons: Requires Cloudflare account, storage costs apply


Configuring Local Storage

  1. In Storage Settings, select Local Storage
  2. Click Save Changes

Configuring Amazon S3

  1. Select Amazon S3 as your storage driver
  2. Enter the following credentials:
    • AWS Access Key ID
    • AWS Secret Access Key
    • AWS Default Region (e.g., us-east-1)
    • AWS Bucket — Bucket name
    • AWS URLhttps://your-bucket-name.s3.amazonaws.com
  3. Click Save Changes

Getting S3 Credentials

  1. Log in to AWS Management Console
  2. Navigate to S3 → Create bucket
  3. Under Permissions, uncheck "Block all public access"
  4. Enable CORS:
[
  {
    "AllowedHeaders": ["*"],
    "AllowedMethods": ["GET", "PUT", "POST", "DELETE"],
    "AllowedOrigins": ["https://your-domain.com"],
    "ExposeHeaders": []
  }
]
  1. Create an IAM user with S3 access and generate access keys

Configuring Cloudflare R2

  1. Select Cloudflare R2 as your storage driver
  2. Enter the following credentials:
    • Account ID or Access Key
    • Secret Access Key
    • Endpoint — Your R2 bucket endpoint URL
    • Public URL — Public URL for accessing files
    • Bucket Name
    • Region — Typically auto
  3. Click Save Changes

Getting R2 Credentials

  1. Log in to Cloudflare Dashboard
  2. Navigate to R2Create bucket
  3. Go to Manage R2 API TokensCreate API Token
  4. Set Read & Write permissions
  5. Copy the Access Key ID and Secret Access Key
  6. Your endpoint: https://[account-id].r2.cloudflarestorage.com
  7. Enable public access for your bucket to get the Public URL

On this page