Extension:LicenceOnUpload

Allows adding the licence template by default on Special:Upload.

There is an inbuilt system which is suppose to be doing that, but on #mediawiki nobody knows what that system is, and why have one system when we can create our own?