Luzifer / ots

One-Time-Secret sharing platform with a symmetric 256bit AES encryption in the browser

Home Page:https://ots.fyi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

maxAttachmentSizeTotal is not respected if its bigger than 64MiB

GabeDuarteM opened this issue Β· comments

Hey! πŸ‘‹

I wanted to use ots to share somewhat bigger files, and I found maxAttachmentSizeTotal on the customization docs, which as far as I understood, should allow me to change the max size of attachments (along with maxSecretSize). If I set this to anything lower than 64MiB, it works as expected, but if its anything above it, then it gets completely ignored, as seen on this line.

Is there a reason for this to be there? I wanted to either disable the max file size, or at least set it to something way bigger, like 10gb, but because of that line, I can't really do that, and thats also not mentioned on the customization page πŸ€”

See the documentation of the parameter in the "Customization" page in the Wiki and the reasoning in the customize.go for the explanation.