Skip to content

How to Increase Attachment File Size Limit in GitLab

Avatar photo

https://www.linkedin.com/in/gineesh/ https://twitter.com/GiniGangadharan

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.

Disclaimer:

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


https://www.linkedin.com/in/gineesh/ https://twitter.com/GiniGangadharan
Gineesh Madapparambath is the founder of techbeatly and he is the author of the book - ๐—”๐—ป๐˜€๐—ถ๐—ฏ๐—น๐—ฒ ๐—ณ๐—ผ๐—ฟ ๐—ฅ๐—ฒ๐—ฎ๐—น-๐—Ÿ๐—ถ๐—ณ๐—ฒ ๐—”๐˜‚๐˜๐—ผ๐—บ๐—ฎ๐˜๐—ถ๐—ผ๐—ป. 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 - iamgini.com)

Comments

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.