Hi There,
So earlier what was happening is that in V4, when I was adding to add any text file or video file entering the upload tab and clicking on the browse from computer , then an event got triggered and I was able to find the type of the file and update with validations like if it was an image file(jpeg,jpg,gif,png), I was allowing that to be added in the editor and for the files which were not of image type I used to show an error message. So in v4 the image_upload_handler used to get triggered on selecting any type but after TinyMCE update to v5 the image_upload_handler is not getting triggered only and I am not able to validate it.
If you know why image_upload_handler is not getting triggered after selecting any file after clicking browse from the computer, please update