-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Max file size limit for non-LFS #24
Comments
Except for the UI admin settings I could find nothing in the docs regarding limiting file sizes. I also checked gitlab.rb and could find nothing of these sorts. So I at least tried the UI settings Maximum attachment size and Maximum push size: Admin_Area>Settings>General>Account and Limit
finally I wrote a pre-receive hook which checks file uploads via web and web-ide: This can be used to limit the file size or even block these web uploads completely. Still - there is the problem, that if a user uploads a lot of small files that are too big in total, it would still be allowed. Maybe it would also be possible to check if files in certain directories like the data folder in assay are lfs tracked. When I find the time I could also integrate this into the docker image. |
I found the same thing. Also double-checked the behavior you described for the maximum attachment size, which clearly does not behave as described. We are currently looking into this problem and will probably set a maximum push size and make use of the pre-receive hook you provided. Thank you! We would also be happy to receive suggestions about a sensible file size limit and whether it makes sense to deactivate web uploads altogether. I also do not see an easy solution regarding the concern that a user may upload numerous small files which exceed result in a repository size which is unreasonable, as limiting the repository size seems to include LFS files. But I don't know if this will be an issue in practice. |
The Git non-LFS part is important for metadata development. Therefore, we should limit the file size for non-LFS object.
The text was updated successfully, but these errors were encountered: