Setting up CSV uploads in Metabase

CSV uploads let analysts load a spreadsheet into a database Metabase writes to, but only on supported databases and with a write-enabled user. This page covers the setup sequence, the controls to put around it, and when a pipeline should load the data instead.

On this page

How CSV uploads in Metabase write to your database

A team has spreadsheets it wants to query next to its warehouse data in Metabase, and the CSV upload feature is the built-in way to do that. An upload does not stay inside Metabase as a loose file. It creates a table in a database that Metabase writes to, so the uploaded data becomes queryable like any other table, with saved questions and dashboards built on top. That write path is the first thing to plan, because it means the database, its user and its schema become part of your design rather than a detail.

Metabase documents CSV uploads for PostgreSQL, MySQL, Snowflake, Redshift and ClickHouse, with ClickHouse support limited to ClickHouse Cloud. Each upload needs a database user with write access, plus a chosen database and schema that the user can write to. Before rollout, confirm which database will receive uploads, create a dedicated schema for them, and grant that upload user rights only in that schema. Keeping the write permission away from the schemas that hold production or source-of-record tables limits what a mistaken upload or a compromised credential can change. Check the exact privileges required for your database against the Metabase uploads documentation before you grant them.

Metabase positions uploads for ad hoc analysis of spreadsheet data and recommends loading large or regularly updated data into the database directly. Treat that as the decision point. A one-off reconciliation file or a list of accounts to review fits an upload well. A monthly finance extract that people re-upload by hand, or a dataset that grows over time, is better loaded by a scheduled pipeline into the same database, where it gets versioning, retries and logs. Decide early which datasets are ad hoc and which are recurring, and write that rule down so analysts do not turn a temporary upload into an unowned production table.

What you need before enabling CSV uploads

CSV uploads write into a database that Metabase already reads from, so the database, the account Metabase uses to write, and the target location all need to be settled before anyone clicks upload. The cards below cover the four items to put in place and the version and plan checks to complete before rollout.

A supported database

Uploads work on PostgreSQL, MySQL, Snowflake, Redshift and ClickHouse, with ClickHouse support limited to ClickHouse Cloud. Confirm that the database you plan to write to is on this list, and that it is the same instance your analysts already query through Metabase. An upload lands in a database Metabase can query, so a source that Metabase cannot read back is not a candidate.

Uploads docs

A user with write access

Metabase needs a database user with write permission to create tables in the upload target. Keep this user separate from the read-only account used for ordinary querying, so that analysts' queries cannot change data and the write permission is limited to the upload schema. Ask your database team to grant the write rights only on that schema, and record who owns the credential and where it is stored.

A chosen database and schema

Pick a dedicated database or schema for uploaded tables before enabling the feature. Keeping uploads in their own schema makes it easier to set table prefixes, review what has been created, and remove stale tables without touching production data. Decide who may upload, who can see the resulting tables in Metabase, and how long uploaded tables should remain.

A confirmed Metabase version

Check the exact Metabase version you run against the uploads documentation, since upload support and settings are documented per release. Compare your version with the supported release list and the end-of-life dates before you change anything. If you are planning an upgrade at the same time, finish the upgrade and test uploads on the new version first.

Version support

Plan and pricing confirmation

Confirm on the pricing page which plan includes the features your rollout depends on, such as user management, SSO and permissions, before you promise access to uploads across the organization. Ask whether the plan your team chose affects how many users need access. Treat the plan details as a checkpoint to verify at rollout rather than a fixed assumption.

Pricing page

How an uploaded spreadsheet reaches a warehouse table

The path starts in an analyst's browser, where the CSV is sent to the self-hosted Metabase server. Metabase then connects to the target database with the writable user you configured and creates the table in the chosen schema, so that user's write grants and the schema choice are the controls to check. The recurring path is separate: a pipeline writes to the same schema directly, which keeps large or regularly refreshed data out of the upload feature.

Ad hoc CSV uploads and recurring pipeline loads both write to the same schema.

Enabling uploads on a supported database connection

This sequence takes a self-hosted Metabase from a database connection that has no upload path to one where a tested spreadsheet upload lands in a schema you chose. Each step ends with a check so the next step starts from a known state.

  1. Confirm the database type supports uploads

    Before anything else, confirm that the database behind the connection is one Metabase supports for CSV uploads: PostgreSQL, MySQL, Snowflake, Redshift, or ClickHouse (only ClickHouse Cloud, not self-managed ClickHouse). Check the exact version and deployment requirements in Metabase's uploads documentation, since support can depend on the platform. Done means you have written down the database type and deployment and confirmed it appears on the supported list. If the database is not on the list, stop here and choose a pipeline or a different target.

  2. Create or select the writable database user

    Ask your database administrator to create a dedicated user for Metabase uploads, or select an existing one, and grant it write access only in the schema you plan to use. Keep it separate from the read-only user Metabase uses for querying reports, so the upload path can be reviewed and revoked on its own. Confirm the grant by logging in as that user and checking that it can create a table in the target schema, then dropping the test table. If the user cannot create a table, the grant is incomplete.

  3. Choose the target database and schema

    Pick the database and schema that will receive uploaded tables, ideally an empty schema used only for uploads so business tables are not mixed with user-supplied data. Record the schema name, because Metabase asks for it when you enable uploads. Confirm that the writable user can see this schema and that no existing production table shares a name you expect people to upload. Done means the schema name is written down and the database administrator agrees that it is the only place uploads will write.

  4. Enable uploads on the connection in admin settings

    In Metabase, sign in as an administrator, open the admin settings, and go to the database connection you want to use. Edit the connection so it uses the writable user, then turn on uploads for that connection and select the target database and schema. Save the connection and confirm that Metabase accepts the credentials without an error. Done means the connection shows uploads as enabled with the schema you chose, and the upload option appears to users who have permission to use it.

  5. Run one test upload with a small spreadsheet

    Prepare a small CSV file with a few rows and clearly named columns, then upload it through Metabase to the target schema. Use a file that contains no sensitive data, so a mistake does not expose real records. Watch for the table name Metabase creates and for any column type or header issue that appears during the upload. Done means the upload completes without error in Metabase.

  6. Confirm the test table in the database

    Connect to the database directly with a separate client, outside Metabase, and check that the test table exists in the target schema with the expected row count and column names. Then query a few rows to confirm the values were stored correctly. Record the table name Metabase generated so you can recognize upload tables later. Done means the table is visible in the database and its contents match the file. If it is missing, check the schema selection and the writable user's grants before trying again.

Which databases accept CSV uploads and what each one needs

This table maps each platform that accepts Metabase CSV uploads to the write access it needs and the caveats to check before enabling uploads. Read the confirm column first, since write permissions and upload support depend on your own environment and vendor configuration as much as on Metabase.

PlatformWrite access and schema needsCaveatsWhat to confirm
PostgreSQLA database user with write access, plus a chosen database and schema for uploaded tablesUploads create tables, so the user needs rights to create tables in the target schema, not only read rightsThat the upload user cannot write to schemas holding production tables, and that the schema is dedicated to uploads
MySQLA database user with write access, plus a chosen database for uploaded tablesWrite access must cover table creation in the chosen database, which is broader than the read-only user most teams create for queryingWhich grants the user holds on the target database and whether any other application uses that database
SnowflakeA user with write access, plus a chosen database and schemaWarehouse and role settings determine what the upload can write, so the role field alone does not define the boundaryThe role, warehouse and schema the upload uses, and that its privileges are limited to the upload schema
RedshiftA user with write access, plus a chosen database and schemaUploads are one of several write-related features on Redshift, so enabling uploads should be a separate decision from enabling transforms or model persistenceWhich Redshift user is used for uploads and whether it differs from the read-only user used for querying
ClickHouse CloudA user with write access, plus a chosen database for uploaded tablesSupported only on ClickHouse Cloud. Self-managed ClickHouse is not supported for uploads, so do not plan uploads thereThat your ClickHouse deployment is ClickHouse Cloud, and the write privileges granted to the upload user with the vendor's documentation
Self-managed ClickHouseNot applicable for CSV uploadsUploads are not supported on self-managed ClickHouse, so teams on that platform need another loading pathWhether your deployment is self-managed, and which pipeline will load recurring data instead

Limiting the writable user and schema for uploads

CSV uploads write into a database, so the database account, the schema it can reach and the people who can trigger uploads decide how far a mistake or misuse can travel. The cards below cover the controls that keep uploads contained and the credential and server checks that sit underneath them.

Dedicated upload user with one schema

Create a separate database user for uploads and grant write access only to the one schema chosen for upload tables. Keep it apart from the read-only user that Metabase uses for ordinary questions, so a change to one credential does not change the other. Confirm the grants with a query against the database catalog after setup, because a grant on a parent object can reach more tables than you intended. Metabase needs a user with write access plus a chosen database and schema for uploads.

Uploads docs

No write rights to production tables

The upload user should have no write, update or delete rights on any table that feeds production reports, applications or finance processes. Test this by attempting an insert into a production table with that user and confirming the database refuses it. Apply the same check to views, sequences and functions that could let the user change other data indirectly. A permission error here is the expected result.

Naming convention for upload tables

Agree a prefix or pattern for every table created by an upload, for example one that marks the table as user-uploaded and records the owner or date. A consistent name lets analysts, data owners and cleanup scripts tell uploaded data from curated tables at a glance. Decide who may rename or drop these tables and document the rule before the first upload. The naming pattern is a team decision, so write it down and enforce it in review.

Review of who can trigger uploads

Decide which Metabase groups may run uploads, then check that membership against your access review cycle. Upload rights are separate from the database credential, so a user with upload access can still write data even when they cannot query the source. Confirm how group membership reaches Metabase in your setup, whether by manual administration or through an identity provider, and remove access when someone changes role. Recorded membership changes are easier to answer in an audit.

Storing and rotating the upload credential

The upload user's password is a database credential. Store it in a secrets manager or an encrypted store that your team already audits, not in a configuration file or a shared note. Rotate it on the schedule your security policy requires, and plan the change so the new value reaches Metabase without a gap in service. Record who holds the credential and who approved each rotation.

Protecting the application database and secrets

Uploads depend on the Metabase application database and the server that runs it. Check who can read the application database, since it holds stored connection details, and confirm that the server's secret and encryption settings are protected and backed up with the same care as the database. Limit shell access to the host, review its logs for upload activity and confirm that database backups are encrypted. Ask your platform team to verify these controls on your actual server rather than assume them.

Application database docs

Why recurring data belongs in a pipeline

Metabase's own guidance is that CSV uploads suit ad hoc analysis of spreadsheet data, and that large or regularly updated data should be loaded into the database directly. Treat an upload as a one-off convenience for a single analyst's file, not as a loading path for a dataset the business depends on. Once a spreadsheet is refreshed every week or month, the upload stops being analysis support and becomes an unmanaged data load with no owner, no schedule and no record of what was loaded.

Repeated manual uploads create four risks that are easy to miss at the start. The first is duplicate tables: each refresh can produce a new table with a date in its name, and dashboards quietly point at the old one. The second is missing load history, since an upload does not tell you which file produced which rows or when. The third is unclear ownership, because nobody is clearly responsible when a column changes or a refresh fails. The fourth is drift from the source system, where the spreadsheet diverges from the system of record and nobody notices until a number is questioned.

For recurring data, plan a scheduled pipeline that extracts from the source, transforms and loads into the database Metabase reads from, and writes a run record each time. Your team should choose the pipeline tool and decide who owns it as separate decisions, because the tool choice depends on your existing platforms and skills, and ownership depends on who is accountable for the data. Confirm with your data team which schema the pipeline should write to, and keep the upload-enabled schema for ad hoc files so the two paths do not collide.

Choosing between an upload and a pipeline by situation

A single spreadsheet that someone needs to query once, such as a vendor list or a one-off reconciliation, is the case uploads were built for. Metabase's documentation describes uploads as suited to ad hoc analysis of spreadsheet data, so the upload path fits when nobody expects the data to change after the analysis ends. The analyst who uploads the file keeps the table, and the cost is mostly their time plus the review needed to confirm the data is correct.

  • Upload path: a user with upload permission loads the file into the chosen database and schema on PostgreSQL, MySQL, Snowflake, Redshift or ClickHouse Cloud.
  • What the team owns: the file itself, the accuracy of the columns and the decision to delete or keep the table afterward.
  • Cleanup: agree who removes the table when the analysis is finished, so one-off tables do not pile up in a shared schema.
  • Governance: confirm the schema is one the upload user is allowed to write to, and that the data does not carry restricted fields.
  • Ask first: how many rows and columns the file has, and whether anyone expects to rerun this analysis.

Confirm before uploading that the file contains no data that the database's access rules would normally block from the people who will query it.

CSV upload failures in Metabase and how to fix them

This table lists the most common reasons a CSV upload fails or lands wrongly in Metabase, with the likely cause and fix for each. Check the Metabase logs and the upload database user's grants first, since most failures trace back to one of those two places.

SymptomLikely causeFix
Uploads option does not appear for a connectionThe database is not on the supported list (PostgreSQL, MySQL, Snowflake, Redshift or ClickHouse Cloud), or uploads are not enabled for that connectionConfirm the engine and deployment type against Metabase's uploads docs, then enable uploads in the connection settings and reload the page
Upload fails with a permission errorThe database user lacks write access to the target schema, so the table cannot be created or inserted intoGrant CREATE and INSERT on the chosen schema to the upload user, then retry. Check the Metabase logs for the exact database error
Schema is missing from the upload target listThe schema is read-only for the upload user, or Metabase has not synced the schema yetGrant write privileges on that schema, run a manual sync of the database in Metabase, and confirm the schema appears in the picker
Upload fails because the table name already existsA table with the same name exists in the chosen schema, and uploads do not overwrite existing tables by defaultChoose a different name or set the table prefix convention your team uses, and remove or rename the old table if it is no longer needed
Connection is on an unsupported databaseThe warehouse or engine is outside the supported list, so Metabase does not offer uploads for itLoad the file with your pipeline or the database's own loading tool, then connect Metabase to the resulting table for analysis
Columns arrive with unexpected typesMetabase infers types from the file contents, so mixed values, leading zeros, dates in varied formats or empty cells can produce text or numeric columnsClean the spreadsheet before upload so each column holds one type, then check the created table's column types in the database and correct them there
Upload succeeds but data is stale or incompleteThe file was uploaded once and never refreshed, so recurring data drifts from the source systemFor recurring data, load through a scheduled pipeline into the database and point Metabase at that table instead of repeating manual uploads

Questions teams ask before setting up CSV uploads

Can our team set up CSV uploads in Metabase without outside help?

Often yes, if one person can create a database user with write access, your Metabase admin can enable uploads for a chosen database and schema, and someone owns the spreadsheets that will be loaded. The work itself is configuration rather than custom code. The harder questions are about who may write where and how the data will be governed afterward. Teams with a capable database administrator and a Metabase administrator usually handle a first, limited setup internally. Bring in outside help when the write path touches several databases, when your review board requires a documented permission model, or when the team lacks someone to own the data after the upload.

What drives the effort of a CSV upload setup?

Four factors move the effort most: the database type, the permission model, the number of schemas involved, and how many people will upload. Metabase supports uploads on PostgreSQL, MySQL, Snowflake, Redshift and ClickHouse (only ClickHouse Cloud), so the connection details and grant syntax differ by platform. A single writable schema with one uploader is a small job. Several schemas, separate teams writing to separate schemas, and a requirement to audit who loaded what add design and testing time. Each additional uploader also needs a clear rule about naming, overwriting and cleanup. Ask your partner or internal team to list these four factors in writing before estimating anything.

How long does a first CSV upload setup take in our environment?

The duration depends on your environment, so it cannot be stated in general terms. The main variables are how quickly your database administrator can create a dedicated user and grant write access on the target schema, how long your change process takes for database and Metabase configuration, and whether a test schema exists outside production. Confirm three things before planning: the approval lead time for database grants, the schema naming and table prefix convention your data owners accept, and whether a non-production Metabase instance is available for testing. A proof of concept on one schema with a few sample files is the fastest way to measure your own timeline.

What does a CSV upload setup need from our database admin, Metabase admin and data owner?

The work needs three roles, and they should be named before the project starts. The database administrator creates a database user with write access, limited to the chosen database and schema, and reviews what that user can also reach. The Metabase administrator enables uploads for the database, selects the schema, and sets the table prefix so uploaded tables are easy to identify. The data owner decides which spreadsheets may be loaded, who may load them, and when outdated tables are removed. Without the data owner, uploaded tables accumulate with no clear meaning, which is the most common operational problem with ad hoc uploads.

Are CSV uploads available on the Metabase open source edition?

Metabase documents CSV uploads as a database feature for the supported databases, and the open source edition ships under the AGPL license. Confirm the current position on the Metabase pricing page before you commit, because plan features can change. The pricing page lists Open Source, Starter, Pro and Enterprise plans. Compare the uploads entry against the plan you intend to run, and also check the separate features that matter here, such as SSO and row and column level permissions, which the pricing page places only in the Pro and Enterprise plans. Ask your Metabase vendor to confirm in writing which plan includes the uploads capability for your deployment.

Should uploads be used for recurring data or should a pipeline load it?

Metabase says uploads suit ad hoc analysis of spreadsheet data and recommends loading large or regularly updated data into the database directly. For recurring feeds, a scheduled pipeline gives you repeatable loads, logs, retries, versioned transformations and a clear owner for failures. Uploads depend on a person choosing a file at the right time, which makes freshness and completeness hard to guarantee. Use uploads for one-off reference lists and short-lived analysis. Move anything that refreshes weekly, feeds a report leadership reads, or contains regulated data into a pipeline, such as one built with Apache Airflow or another scheduler your team operates.

When should we bring in a partner for a pipeline or governance review?

Bring in a partner when the upload pattern has grown into a data process that needs design rather than configuration. Typical triggers include recurring feeds that people load by hand, several business units writing to shared schemas, a need to show access review and logging to auditors, or uploaded data that must be classified or retained under a policy. DeployOpen plans, implements and documents self-hosted platforms inside your own infrastructure, and it prepares systems and evidence for compliance assessments without issuing audit reports. Start with a written scope that names the databases, schemas, uploaders, data owners and the outcomes you need to show.

How DeployOpen scopes and delivers a Metabase upload setup

DeployOpen approaches CSV uploads in Metabase as a scoped piece of work inside your own infrastructure. We start from the databases you have, the users and schemas that may receive uploads, and the recurring datasets that should move to a pipeline instead, then build and document the setup so your team can run it.

How we scope

  • Confirm which target database is in use, since upload support depends on the database and its edition.
  • Define the writable database user, the schema, and the table prefix that uploads will be allowed to create.
  • Agree in writing which datasets stay ad hoc uploads and which move to a scheduled pipeline, such as Airflow.

How we build

  • Create a dedicated writable database user limited to the agreed schema, with no broader write privileges.
  • Enable uploads in the Metabase admin settings for the chosen database and verify the upload path end to end.
  • Test with representative spreadsheets, including oversized files, unexpected column types and duplicate headers.

How we hand over

  • Deliver a written setup record covering the database user, schema, prefix, permissions and the rollback steps.
  • Walk your administrators through who may upload, how uploads appear in the database, and how to remove them.
  • Document the boundary between ad hoc uploads and pipeline-loaded tables so ownership of each dataset is clear.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and continuous testing are available as a retainer after handover.
  • Ask any partner for a written quote tied to the scope, including what is one-time and what recurs.

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.