mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-10 01:10:09 +03:00
change maximum file size #1372
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vista-narvas on GitHub.
Subject of the issue
when uploading a file for send, i get the error
"Maximum file size is 100 MB."
i cant find any config for changing the maximum file size
Deployment environment
vaultwarden/server:latest
just pulled again
Install method:
docker
Clients used:
web vault and browser addon
Reverse proxy and version:
traefik
MySQL/MariaDB or PostgreSQL version:
nope
Other relevant details:
Steps to reproduce
Expected behaviour
a way to set the maximum file size
Actual behaviour
Troubleshooting data
@jjlin commented on GitHub:
Max attachment size is primarily limited by what the clients are designed to handle, and you can't change that without building your own version of the client. See https://bitwarden.com/help/article/attachments/ for details.
In principle, the server could handle arbitrarily large attachments, but it also has some checks to mirror the client limits.
@RealOrangeOne commented on GitHub:
Looking at the code, the default is 110MB, but it can be overriden with the
$USER_ATTACHMENT_LIMITenvironment variable@vista-narvas commented on GitHub:
ok so the limiting factor is the client
i guess there is nothing to do about that
thank you for your time
@vista-narvas commented on GitHub:
i tried using USER_ATTACHMENT_LIMIT: 8388608 in my docker-compose.yml
and im still not able to upload bigger files
i think USER_ATTACHMENT_LIMIT is only for the global limit
in the error it says "Attachment size limit reached! Delete some files to open space"
if i change USER_ATTACHMENT_LIMIT to 1 when i try to upload a small file i get that error