Skip to content

How to Increase Attachment File Size Limit in GitLab

Avatar photo

We know GitLab is one of the best and easy to use git server solutions available in the market now. And GitLab CE is available as free and we can simply spin up a VM and set up our own Git server with all features. We can fine tune the GitLab server as needed and based on organization policies and this must be done if you are using this in production.

Let me explain a common scenario. While using our internal GitLab server, we received complaints that users are not able to upload large files from GUI and unable to proceed with deployment using the repositories.

So, we tested the scenario; from the GUI, we selected the Upload file option.

Upload Window will popup

Choose the file from the file browser window

Hey, users are right; there is an error as the Popup window shows a warning and says “Maximum File Size 10MB!”

Aaah, now I remember; we forgot to set this parameter for this git server.

So, we need to login as a root user (or any user with Admin access) via the same GitLab GUI from a browser. Then we open Admin configurations for GitLab server.

Goto Settings -> General

And expand Accounts & Limits settings. Here you can see, the default File upload size is limited to 10MB; no wonder.

I have updated the value to 100MB as shown in the image – yes that is enough for now.

And don’t forget to Save the configuration

So, I came to my login (you can do it from root login as well; no difference) to verify the same.

And yes, no error this time and the file is uploading.

And finally we can upload the file which is larger than 10MB is already uploaded.


The views expressed and the content shared in all published articles on this website are solely those of the respective authors, and they do not necessarily reflect the views of the author’s employer or the techbeatly platform. We strive to ensure the accuracy and validity of the content published on our website. However, we cannot guarantee the absolute correctness or completeness of the information provided. It is the responsibility of the readers and users of this website to verify the accuracy and appropriateness of any information or opinions expressed within the articles. If you come across any content that you believe to be incorrect or invalid, please contact us immediately so that we can address the issue promptly.

Avatar photo
Gineesh Madapparambath is the founder of techbeatly and he is the co-author of The Kubernetes Bible, Second Edition. and the author of 𝗔𝗻𝘀𝗶𝗯𝗹𝗲 𝗳𝗼𝗿 𝗥𝗲𝗮𝗹-𝗟𝗶𝗳𝗲 𝗔𝘂𝘁𝗼𝗺𝗮𝘁𝗶𝗼𝗻. He has worked as a Systems Engineer, Automation Specialist, and content author. His primary focus is on Ansible Automation, Containerisation (OpenShift & Kubernetes), and Infrastructure as Code (Terraform). (aka Gini Gangadharan -


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.