Gitlab GUI doesn't allow me to upload large files (5Gib) error message " Directories cannot be uploaded. Please upload a single file instead."

Problem to solve

I’m trying to upload a large file (more than 5Gib) to my gitlab through the GUI but it looks like gitlab considers it a folder ?

The error message is :

Directories cannot be uploaded. Please upload a single file instead.

The file i’m trying to upload is a .zst file.
I tried to upload a smaller .zst file and it worked.
I tried to do it through command lines (by putting it in the repo and committing + pushing) and it worked too.

The Commit changes button also charges indefinitely, only by refreshing the page does it stop.

Steps to reproduce

Clicking the + symbol while in my repository > Upload file
Try to import a large file (>5Gib)

Configuration

(nothing special, it’s a fresh install of git + gitlab-ce + git-lfs)

Versions

Please add an x whether options apply, and add the version information.

  • Self-managed
  • GitLab.com SaaS
  • Dedicated

Versions

  • GitLab Community Edition v18.1.1

Please see this page here which covers a lot of the limits: Account and limit settings | GitLab Docs

Direct links to sections on that page that you may wish to check and increase:

Max attachment size: Account and limit settings | GitLab Docs
Max push size: Account and limit settings | GitLab Docs
Repository size limit: Account and limit settings | GitLab Docs

If it is working when you do git push from the command line, and it just doesn’t work in the web interface, then this is probably hinting at the default nginx settings that need to be increased. The link for that is here: Account and limit settings | GitLab Docs