Media Manager upload size and file name validation
This is more of a getting started guideline as I'm not sure how to proceed with the changes or if they're good enough quality.
The first issue I encountered is the fact that by default mediamanager.js will have a max filesize of 256MB (dropzone default) and cant be increased any further.
2nd issue was actually trying to find why an error was popping up which lead to the first issue. When the file size is too big it just gives a console error. As it turns out the xhr property doesn't exist within the context so i had to make it conditional so it'd go to the actual popup.
3rd issue (or rather more of a preference) is that in some cases I'd prefer to keep the file names intact without any cleanup. So I made it so that you can optionally disable file name validation cleanup.
I'm not that familiar with dropzone, so im unsure how to integrate filesizes with winter so it works like how the fileupload widget does for now it's set to 0. There also came an issue where because it's using post_max_size to upload a file to media manager, a memory exhaustion error popped up, and rather than having to globally set the memory limit higher, it would be better to use ini_set temporarily.