Board Thread:General Coding Help/@comment-26859789-20171020053427

Hi guys.

I have a doubt about javascript. Is there any way to prevent to upload a file if the user hasn't selected a license? I mean, when you are editing a page and you want to upload a file without going to Special:Upload, you can press the button to do it in the page, however, many people don't pay attention to the "More options" section and they upload the file without any license. How can I do to prevent them to upload the file and to notify them? 