# Can't setup big files upload (LFS?)

**URL:** <https://forum.gitea.com/t/cant-setup-big-files-upload-lfs/5808>\
**Category:** Install/Maintain/Configure\
**Created:** [August 31, 2022, 12:01pm UTC](https://forum.gitea.com/t/cant-setup-big-files-upload-lfs/5808 "2022-08-31T12:01:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![evelk](https://avatars.discourse-cdn.com/v4/letter/e/c4cdca/32.png) [@evelk](https://forum.gitea.com/u/evelk)\
**Post date:** [August 31, 2022, 12:01pm UTC](https://forum.gitea.com/t/cant-setup-big-files-upload-lfs/5808/1 "2022-08-31T12:01:08Z")

</div>

I can’t figure out how to upload big files. We are working on a game and some of our files can be pretty big (up to 120mb) but the max upload size is 4mb.

How can I change it to say 200 megabytes? Should I set up LFS and, if yes, how?  
Sorry if this is obvious, I’m new to Gitea and self-hosting in general.

---

<div class="post-metadata">

**Author:** ![Mai-Lapyst](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/mai-lapyst/32/5065_2.png) [@Mai-Lapyst](https://forum.gitea.com/u/Mai-Lapyst)\
**Post date:** [September 6, 2022, 8:11pm UTC](https://forum.gitea.com/t/cant-setup-big-files-upload-lfs/5808/2 "2022-09-06T20:11:28Z")

</div>

First: the upload limit you see in the frontend is for the frontend only; with git (+ lfs) you can upload more.

To change it for the frontend, you need to edit your `app.ini`:

```ini
[repository.upload]
;; Max size of each file in megabytes. Defaults to 3MB
FILE_MAX_SIZE = 3

```

See [gitea/app.example.ini at main · go-gitea/gitea · GitHub](https://github.com/go-gitea/gitea/blob/main/custom/conf/app.example.ini#L953-L954) .

As for lfs: yes it would be good for these types of files to utilize git-lfs. You can find its homepage here: [https://git-lfs.github.com/](https://git-lfs.github.com/) .

On most git installations you youst need to run `git lfs install`; though on linux you might need to install a package first, like `git-lfs` under archlinux.

To get started with lfs, you simply need to “track” the files you want to have stored inside the lfs instead of the normal git space:

`git lfs track "*.psd"`; also make sure the `.gitattributes` file is tracked in your normal git (`git add .gitattributes`).

You can also search online for `.gitattributes` files from others; most of the time someone already has put together one for your engine.

For example, here is one for unity: [.gitattributes for Unity3D with git-lfs · GitHub](https://gist.github.com/nemotoo/b8a1c3a0f1225bb9231979f389fd4f3f) .

If you want to learn more about gitattributes in general, here is documentation for it:

- [Git - gitattributes Documentation](https://git-scm.com/docs/gitattributes)

- [Git - Git Attributes](https://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes)

Hope I could shine some light in the dark for you 😃
