Luzifer / ots

One-Time-Secret sharing platform with a symmetric 256bit AES encryption in the browser
https://ots.fyi
Apache License 2.0
448 stars 69 forks source link

maxAttachmentSizeTotal is not respected if its bigger than 64MiB #176

Closed GabeDuarteM closed 4 months ago

GabeDuarteM commented 4 months ago

Hey! :wave:

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 :thinking:

Luzifer commented 4 months ago

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