How to change the default max upload file size?

Hello

I would like to know how to change the default upload file size 50MB ? to change it for example to 100MB

Thanks in advance.

1 Like

Dear Hopewise,

By default, Metabase has a file upload limit of 50MB, and unfortunately, there is no direct setting in the Metabase UI to change this.

However, you can try a few workarounds depending on how you are running Metabase, below are few options from the customers I have worked with using Metabase across the different runnings:

  1. If You Are Running Metabase with Docker**
    If you’re using Docker, you can set a higher limit by adjusting the max-request-size in the JAVA_OPTS environment variable. You can start Metabase like this:

docker run -e JAVA_OPTS="-Dmetabase.uploads.max-size=100MB" -p 3000:3000 metabase/metabase

  1. If You Are Running Metabase as a JAR File**

If you are using the JAR file, you can run it with this command to increase the upload limit:

java -Dmetabase.uploads.max-size=100MB -jar metabase.jar

  1. If You Are Using an Nginx Proxy**

If you have Nginx in front of Metabase, you may also need to adjust the client_max_body_size setting in your Nginx configuration:

server {
client_max_body_size 100M;
}

It is worth noting that Metabase does not expose this setting in the admin panel, so you need to adjust it through environment variables or server configurations. If you are hosting it in a cloud service (like AWS Elastic Beanstalk or Kubernetes), you may also need to modify the platform-specific settings.

Thanks,
Josh

I'm going to reply to this without using chatgpt: you can't, and there's a reason for that, which is simply that if you want to do very big operations in the database you should be doing that via a plain raw connection, e.g. using the csv loader that the databases provide