3 ms·
If that's the best example, I'd almost count that as an argument against. maxAttachmentSize: 33554432 # 32MB maxTotalSize: 33816576 # 256kB + maxA
by nucleardog 7y ago
If that's the best example, I'd almost count that as an argument against.
maxAttachmentSize: 33554432 # 32MB
maxTotalSize: 33816576 # 256kB + maxAttachmentSize
All the "full language" version is done is avoided me having to use the incredibly powerful calculator I'm sitting in front of to calculate some numbers for all of 5 seconds.
Programatically solving something which changes very infrequently isn't really a good case for all the other complexity and potential issues something like this would drag along with it.
- lostmsu 7y ago> maxAttachmentSize: 33554432 # 32MB That works until person 1 updates the value, but does not notice the comment duplicates it, then person 2 spends hours figuring out why he can't upload 30MB file, while he can clearly see in the config, that it allows up to 32MB, and his debugger tells him limit value actually matches that long number.