This could help you. I have implemented a similar solution for one of my clients. at the File “rtMedia.backbone.js” i have created a loop.
i have searched for “FilesAdded” and have added there this loop. You must costumize it for your needs. while (up.files.length > 4) { up.files[4].remove(); }
The Problem here: Every time you update “rtmedia”, the “rtMedia.backbone.js” will be overwritten.