Rocket.Chat file storage with S3, MinIO or GridFS

Rocket.Chat keeps uploads in GridFS by default, or in S3, MinIO, Google Cloud Storage, WebDAV or the file system. This page covers how to choose, configure and protect that storage before users start sharing files.

On this page

Where Rocket.Chat file storage fits before your first upload

Choosing where Rocket.Chat keeps uploads is a one-time architectural decision that governs how you back up files, how the deployment scales and whether you can move to another platform later without stranding data. Treat it as part of the initial design, alongside the MongoDB replica set and the TLS and identity plan, rather than as a setting to revisit after launch. Rocket.Chat lists five file storage types: GridFS, Amazon S3, Google Cloud Storage, WebDAV and FileSystem. GridFS is the default and keeps files inside MongoDB, so there is no second system to run. Rocket.Chat recommends S3, MinIO or Google Cloud Storage for most deployments, which places the file bytes in object storage outside the database.

The practical question for your team is which storage the platform team can operate for the life of the workspace. If you choose GridFS, file backups travel with your MongoDB backups, but large file volumes increase database size and backup duration. If you choose an S3-compatible service such as MinIO, you add an object storage cluster with its own availability, capacity, credentials and backup plan, and you must confirm that the service is supported and maintained before you commit. Check the current status of every component against its upstream project, because some open-source object stores have changed maintenance models. The Community edition of Rocket.Chat supports the same storage types in principle, but the paid plans are where multi-instance and high-availability designs appear, so confirm which plan your scaling tier needs before you pick a storage layer that must serve several instances.

Before the first upload, write down four facts: the expected file volume, the retention rule for files, the backup owner and the restore test you will run. Confirm them with your storage vendor or platform team and with the Rocket.Chat file upload documentation, which explains how a change of storage type affects files already uploaded. Those answers determine whether you start on GridFS for simplicity or on object storage for scale, and they set the baseline for the migration and backup work described elsewhere on this page.

Which storage type fits which deployment

This table compares the Rocket.Chat file storage options by where uploads live, what your team must run, and the deployments each one suits. Read each row against your existing infrastructure, and treat the Rocket.Chat recommendation as the starting point for most production installs.

Storage typeWhere uploads liveWhat your team operatesWhen it fits
GridFS (default)Inside the MongoDB database that already holds messages and settingsThe MongoDB replica set, its storage capacity and its backups, with no separate storage serviceSmall pilots or teams with modest upload volume that want the fewest moving parts
Amazon S3An S3 bucket in your AWS accountBucket, IAM policy, encryption and access settings, plus network path from the Rocket.Chat serversWorkloads already running on AWS that want object storage managed by the cloud provider
MinIO (S3-type target)A MinIO server or cluster that you host, reached through the S3 APIThe MinIO servers, disks, TLS, credentials and upgrades, since the community edition is no longer maintainedOn-premises or air-gapped sites that need an S3 API, provided you accept the maintenance status checked in the MinIO section
Google Cloud StorageA Google Cloud Storage bucket in your Google Cloud projectBucket, service account, IAM roles and network path from your Rocket.Chat hostsWorkloads already running on Google Cloud that prefer its object storage
WebDAVA WebDAV server, such as a file server or a document platform you already runThe WebDAV server, its permissions and its availability, which Rocket.Chat depends on for every uploadOrganizations that already standardize on a WebDAV file service and need uploads to land there
FileSystemA local or mounted directory on the Rocket.Chat hostThe disk, mount, backups and permissions, and any shared storage needed when more than one instance runsSingle-server installs where a dedicated volume is simple to back up and monitor
Rocket.Chat recommendationUse S3, MinIO or Google Cloud StorageObject storage, a bucket policy, and backup of the bucket alongside MongoDBMost production deployments, because object storage keeps large files out of the database

Why MinIO needs a current licensing and maintenance check

Before you choose MinIO as the S3 backend for Rocket.Chat, confirm that the project is still maintained for your use. The minio/minio repository now says it is no longer maintained, and its GitHub metadata shows the minio/minio, minio/operator and minio/mc repositories as archived (read-only). The last tagged community release is RELEASE.2025-10-15T17-29-55Z, published on October 16, 2025. The community edition is distributed as source code only, with no further pre-compiled binaries, and legacy binaries will not receive updates. That means a new Rocket.Chat deployment on community MinIO would need you to build and patch the server yourself from source.

The community server is licensed under the GNU AGPL v3.0. The README states that any commercial or proprietary use must be validated against AGPLv3 obligations, and that support for the community software is best effort through GitHub and Slack, with SLA-backed support available only through AIStor. Ask your legal team whether your use of the software, including any modifications you make and any network service you expose to users, meets those obligations. Then decide between three paths: an S3-compatible alternative you can operate, AIStor under its own terms (Free or Enterprise), or a managed cloud bucket such as Amazon S3 or Google Cloud Storage, which Rocket.Chat already supports. Each path changes who patches the storage tier and who answers when it fails.

If you evaluate an S3-compatible alternative, check license, maturity and release activity first. Garage is licensed under AGPL-3.0, is developed by Deuxfleurs, and was tagged v2.4.1 on September 7, 2026. Its S3 compatibility page lists no bucket versioning, object lock, bucket policies or event notifications, so confirm that Rocket.Chat's upload features work with its implemented subset. SeaweedFS is Apache-2.0 licensed, with a paid Enterprise Edition, and release 4.48 was published on September 28, 2026. Ceph is mostly dual licensed under LGPL 2.1 or 3.0 and is a large platform to run. Whichever you pick, test uploads, downloads and a restore against a copy of your data before you commit, and record the licensing decision in your change log.

How to switch Rocket.Chat file storage safely

This sequence moves Rocket.Chat uploads onto the storage type you chose, with checks that prove users can upload, download and reach files only when signed in, before the workspace takes real traffic.

  1. Decide the storage type before go-live

    The workspace administrator and the platform team agree on one storage type before any user uploads a file. Rocket.Chat offers GridFS, which keeps files inside MongoDB, plus Amazon S3, MinIO, Google Cloud Storage, WebDAV and the file system. Rocket.Chat recommends S3, MinIO or Google Cloud Storage. Record the choice, the hosting location and the owner of the storage service in the deployment plan. The step is done when the decision is written down and approved, because changing the type after users upload files strands the earlier files unless the change is reverted.

  2. Create the bucket or share with a dedicated credential

    The storage team creates an empty bucket (S3 or MinIO) or a dedicated share (WebDAV or file system) for Rocket.Chat only. They create a service credential that can read and write objects in that bucket and nothing else, and they avoid reusing an administrator key. Confirm that the bucket is private, that public access is off, and that the endpoint is reachable from every Rocket.Chat instance. Ask the storage vendor to confirm which bucket policy and access key options your version supports. The step is done when a test write and read succeed with that credential from a Rocket.Chat host, and the credential is stored in your secrets manager.

  3. Set the file upload storage type in administration

    A workspace administrator opens the administration settings for file upload and selects the storage type. For S3 or MinIO, they enter the bucket, region, endpoint and access credentials, and they set the path style option to match the endpoint. Save the settings only after the connection values are checked against the bucket created in the previous step. The step is done when the settings save without error and the administration page shows the chosen storage type as active. Keep a copy of the previous configuration so the change can be reverted if the test in the next step fails.

  4. Test upload and download as a normal user

    A standard test user, not an administrator, uploads a file in a direct message and in a channel, then opens and downloads it from a second test account. Use files of a few types and a size near your expected maximum. Then check the bucket or share directly to confirm the object appeared under the expected location. The step is done when both accounts can open the file, the object exists in the storage backend, and no error appears in the Rocket.Chat server log. If the object does not appear, do not move on, because users would be uploading into a location the team cannot see or back up.

  5. Confirm Protect Uploaded Files

    The administrator checks the Protect Uploaded Files setting, which limits downloads to authenticated users. Rocket.Chat documents this behavior for uploads. Then the tester opens a copied file link in a private browser session with no login and confirms that the download is refused. Repeat the test with a signed-in account that is not a member of the room where the file was posted, and confirm the access rules match your policy. The step is done when unauthenticated access is refused and the setting is recorded in the change log. If the test succeeds without a login, do not open the workspace to users until the setting is fixed and retested.

  6. Set the upload size limit

    The administrator sets the maximum file size for uploads in the file upload settings, based on the storage capacity, the proxy limit and the expected file types. Confirm the value matches the request body limit of the reverse proxy in front of Rocket.Chat, because a proxy limit lower than the workspace setting causes confusing failures. Ask the storage team to confirm capacity headroom for the chosen limit. The step is done when a file just under the limit uploads successfully, and a file just over it is rejected with a clear message. Record the value and the owner who approves future changes.

  7. Plan migration before any later storage change

    Before the workspace is opened, the platform team writes a migration plan for any future change of storage type. Rocket.Chat documents that if the storage type changes, previously uploaded files are not available unless the change is reverted. The plan should list how existing objects will be copied to the new backend, how links and permissions will be verified, and who signs off the cutover. Include the backup of uploads in the same plan, since files stored outside MongoDB need their own backup. The step is done when the plan is approved and a restore of a sample file from the storage backup has been tested.

Protecting uploaded files in Rocket.Chat storage

Uploaded files often hold the most sensitive content in a workspace, and they sit outside MongoDB once you pick S3, MinIO or another external store. The cards below cover the controls that decide who can fetch a file, how the store is locked down, and what happens to files when they are backed up, retained or deleted.

Limit downloads to signed-in users

Rocket.Chat's Protect Uploaded Files setting limits downloads to authenticated users, so a file link alone should not open content to someone outside the workspace. Confirm the setting is enabled in your version, then test it with a logged-out browser and a direct file URL. Also check how shared links behave for guests and external users, since those accounts are the ones most likely to be outside your identity system.

File upload docs

Scope bucket access to one application

Create a dedicated bucket for Rocket.Chat uploads and a separate access key that can read and write only that bucket. Do not reuse administrator keys or keys shared with other applications. Ask the storage vendor whether it supports per-bucket policies or per-key permissions, and verify that the key cannot list or delete other buckets. Rotate the key on a schedule and record who holds it.

Encrypt at rest and in transit

Set the connection between Rocket.Chat and the object store to use TLS, and confirm the certificate is trusted by the Rocket.Chat container or server. For data at rest, check whether the backend encrypts objects, where its keys live and who can read them. Garage, for example, documents its own permission model and server-side encryption options, but the controls differ by product, so confirm each one against its current documentation before you rely on it.

Back up object stores with mongodump

Uploads stored outside MongoDB are not in a mongodump archive. Their metadata lives in MongoDB, but the file contents live in the bucket, so a database restore without the bucket leaves broken references. Plan a separate backup of the bucket on the same schedule, restore both to a consistent point, and test that a restored file downloads. Confirm whether your backend supports replication or snapshots for this.

Plan retention for shared files

A file shared in a channel stays available to everyone who can open that channel, and deleting a message does not automatically confirm that the bucket object is gone. Review your retention settings in Rocket.Chat together with any bucket lifecycle rules, and confirm how each backend handles expiration. Garage, for example, supports only the Expiration and AbortIncompleteMultipartUpload lifecycle rules, so policies designed for other backends may not work there.

How an upload travels to the chosen storage

The diagram starts with a user's client sending a file to the Rocket.Chat server, which checks the user's session before it writes anything. The server then hands the bytes to whichever storage type the workspace is configured for: GridFS inside MongoDB, an S3-compatible bucket such as MinIO, or the local file system. The trust boundary sits between the Rocket.Chat network and the storage network, so check which hosts can reach the bucket and how the credentials are held. When Protect Uploaded Files is on, downloads also return through the server, so the same authentication applies on the way out.

Uploads pass through the server to one configured storage backend, across a trust boundary.

Why switching storage later strands old files

Changing the storage type after launch does not move existing uploads. Files stay in the backend where they were written, and Rocket.Chat's file upload documentation states that if the storage type changes, previously uploaded files are not available unless the change is reverted. For users, that means a shared PDF or image from last year suddenly fails to load in the channel where it was posted. For records teams, it means the message history still shows the attachment while the file itself cannot be retrieved, which is a gap a retention or discovery review will find. Treat the choice between GridFS, S3, MinIO or another backend as a decision you may have to live with for the life of the workspace.

If you must move, plan the migration as a data project with its own acceptance criteria. Copy every object from the old backend to the new one, then verify object counts and checksums against the source before any user sees the new configuration. Confirm the bucket or path layout Rocket.Chat expects with a test workspace that has a representative sample of files, including large uploads, older files and files in every channel type you run. Keep the old backend readable and its credentials valid until your retention obligations for those attachments are met, because a rollback depends on it. Ask your storage provider and your records owner to confirm how long that must be, rather than assuming the migration date sets the end point.

Illustrative example: a team with 2 TB of uploads in GridFS moves to object storage, copies everything, finds 40 files whose checksums differ, and traces them to an interrupted copy job. Without the count and checksum step, those files would have been reported as unavailable after cutover. Confirm the exact export and copy tooling for your backend and Rocket.Chat version before you start, and record the verification results as part of your change file.

Questions buyers ask about Rocket.Chat file storage

Which file storage type should we pick for Rocket.Chat by default?

For most production deployments, plan on object storage: Rocket.Chat's documentation recommends Amazon S3, MinIO or Google Cloud Storage, while GridFS is the default and keeps uploads inside MongoDB. Choose based on where your infrastructure already runs, who will operate the storage backend, and how your backup tooling covers it. Whatever you choose, record the decision before go-live, because changing the storage type later does not move existing files. Confirm the exact configuration keys for your Rocket.Chat version in the Rocket.Chat file upload documentation before you build.

Is GridFS enough for our Rocket.Chat uploads?

GridFS can be enough for a small workspace with modest file volume, because it needs no extra service and stores uploads in the same MongoDB replica set as messages. The trade-off is that large file volumes add load and backup size to the database tier, so the database team must size for it. Ask your MongoDB owner to estimate growth from your expected upload patterns, and confirm how file data is included in your backup and restore procedure before relying on GridFS for a long-lived workspace.

What drives the cost and effort of an S3 or MinIO setup?

The main cost components are the storage backend itself (hardware or cloud capacity, or a managed bucket service), the time to create buckets, credentials and network paths, and the ongoing operation of the object store. Recurring costs include capacity growth, backups of the object data, and patching. Ask any quote to list who provides and pays for each component, whether the storage is managed or self-operated, and what happens to the backup and monitoring of the object tier. For MinIO specifically, confirm the current license and support position with the vendor, since the project's repository is archived and its community edition is AGPLv3 licensed.

How long does moving Rocket.Chat uploads to new storage take?

Duration depends on the number and size of existing files, the bandwidth between the old and new storage, how much downtime or read-only time your users accept, and how many environments must be verified. Because switching the storage type leaves previously uploaded files unavailable unless the change is reverted, the migration must copy or relocate files as a planned step, not as a settings change. Ask for a written plan that states the file inventory, the copy method, the verification steps and the rollback point. No general duration is given here because no researched figure applies to your data volume.

What must our team provide for an S3 or MinIO integration?

Expect to provide a bucket or buckets for uploads, a dedicated access credential with only the permissions Rocket.Chat needs, network routes from the Rocket.Chat servers to the storage endpoint, TLS certificates where the endpoint uses them, and a named owner for backup and restore of the object data. You also need to decide how Protect Uploaded Files is set, since it limits downloads to authenticated users. Ask any partner to confirm each item in writing, including who creates the buckets and who rotates the credentials after go-live.

Can our internal staff set up Rocket.Chat file storage themselves?

Internal staff can often do it if they already run object storage, Rocket.Chat administration and MongoDB, and have a tested restore process. The difficult parts are rarely the settings screen; they are storage sizing, credential scoping, network paths, backup coverage and the migration of existing files. Assess your team against those skills first. If any of them is missing, a fixed-scope engagement can cover planning, configuration and verification, with the written scope stating what your team keeps operating afterward.

What changes about file storage when we move to a paid Rocket.Chat plan?

The file storage choice itself does not change by plan, but the deployment shape does. Rocket.Chat's reference architectures list multi-instance and microservice designs as paid-plan features, and multiple instances all need access to the same storage. Paid plans also include tamper-evident audit trails covering files, so confirm with Rocket.Chat which audit records are kept and where they are stored. Check current plan details and pricing on the vendor's pages, since plan terms and prices are quoted per organization.

Official sources to read next

Start with the Rocket.Chat file upload documentation, because it defines what the server expects from any storage choice. It lists GridFS (the default, stored inside MongoDB), Amazon S3, MinIO, Google Cloud Storage, WebDAV and FileSystem, and recommends S3, MinIO or Google Cloud Storage. Read the section on changing the storage type closely: previously uploaded files are unavailable after a change unless that change is reverted, so confirm the storage decision before the first production upload. Also check how Protect Uploaded Files limits downloads to authenticated users, and confirm on a test instance which upload size settings your Rocket.Chat version exposes.

Next, read the MinIO README and the MinIO releases page before choosing MinIO, because its status has changed. The README states that the repository is no longer maintained and points to AIStor Free and AIStor Enterprise as alternatives. The minio, operator and mc repositories are archived, and the community server is licensed under AGPL v3.0, so any commercial or proprietary use needs a review against AGPLv3 obligations. The last tagged community release is RELEASE.2025-10-15T17-29-55Z, published October 16, 2025, and the community edition ships as source only, so legacy binaries will not receive updates. If you already run MinIO, ask your team to record a licensing and support decision now.

Then compare the alternatives on their own compatibility statements, starting with the Garage S3 compatibility page. It lists features Garage does not implement, including bucket versioning, object lock, bucket policies, ACLs, server-side encryption configuration, replication, event notifications and tagging. Its lifecycle rules support only AbortIncompleteMultipartUpload and Expiration, so check any retention or cleanup plan against those limits. The SeaweedFS README covers an Apache-2.0 project that exposes S3 and HTTP through filer servers and offers encryption at rest, with more features in its paid Enterprise Edition. Run an upload, download and delete test with your Rocket.Chat instance against each candidate before you commit.

How DeployOpen scopes and delivers Rocket.Chat file storage

DeployOpen starts from where your Rocket.Chat uploads must live, who can reach them and how long they must be kept, then builds that storage backend inside your own infrastructure. Engagements are fixed-scope, so the storage type, upload limits, access controls and handover are agreed in writing before any work begins.

How we scope

  • We record the expected file types, sizes and retention periods that Rocket.Chat must handle.
  • We compare GridFS, S3, MinIO, Google Cloud Storage, WebDAV and FileSystem against your hosting and sovereignty constraints.
  • The written scope names the storage type, bucket layout, upload limits and who owns the backend after handover.

How we build

  • We configure the chosen storage type in Rocket.Chat, including endpoint, bucket, credentials and Protect Uploaded Files.
  • We test uploads, downloads and access by authenticated and unauthenticated users before the workspace goes live.
  • We plan the storage backend's own replication, backups and capacity alongside the Rocket.Chat deployment.

How we hand over

  • We document the storage configuration, credential rotation steps and the procedure for any future storage change.
  • We include a written warning on what happens to existing files if the storage type changes, with the revert path.
  • We walk your platform and security teams through the restore test so they can confirm recovery of uploads.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after the fixed-scope delivery ends.
  • We can review storage settings again when you change Rocket.Chat versions or move to a new storage backend.
  • Retainer scope, response expectations and review cadence are agreed in writing, and quotes follow from the written scope.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.