Adds `maxfilesreached` event
Fixes when the maxFiles has already been reached
Introduced the maxfilesreached event.