Message of the day:
Welcome to Silverstripe | Current release: https://www.silverstripe.org/download | Community Forum: https://forum.silverstripe.org | Feature requests: https://forum.silverstripe.org/c/feature-ideas
If you have any SilverStripe related questions, please supply the version of Framework you're using.
Did you flush? 🚽 =
Do you have an example piece of code I can see for that kind of thing?
_config.php method is probably best.
site wide restriction
that would be ideal.
e.g. a limitation is that if someone implements another method of uploading (that doesn't use upload field) then this restriction wouldn't apply.
I think the most part is understanding where the global setting gets used, and that applying the setting for an upload field instance is just for that field (although with injector used properly that would effectively be every upload field).
hmm, sounds out of my skill range
just be aware of the limitations & impact (which I can't tell you off hand)
Injector is probably the easiest way.