mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-06-19 20:21:04 -05:00
[GH-ISSUE #865] Feature request: Disable attachments #13402
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 @Dubz on GitHub (Feb 16, 2020).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/865
Title says it all.
I want to be able to disable the attachments feature on my system. Attachments take up storage space. Storage costs me money. I do not want to be paying excessive costs to host user attachments.
Logins aren't as much space so I'm alright with that, but when you can multiply someone's storage usage with a few attachments, that's not really something I'd like to have to pay for. They may add a few, or many, files, which would grow the used space exponentially.
@mprasil commented on GitHub (Feb 16, 2020):
That sounds like good idea. I've created a PR to enable that.
@dani-garcia commented on GitHub (Feb 18, 2020):
I've implemented the size limit functionality, with two limits, one for users and another for organizations, so depending where the cipher is located it can be one or the other, and setting it to zero disables uploading at all. The options are
USER_ATTACHMENT_LIMITandORG_ATTACHMENT_LIMITand they use KB.325039c316@7heMech commented on GitHub (Feb 21, 2025):
That's awesome, I set the limit to 0 and to 1000 and I tried to upload a 100MB file and couldn't help, but notice the server downloads the entire file and then rejects it, isn't that possibly bad? I'm not sure if that was my proxy though.