rtMedia: exclude image file types

Hi, I’m just using rtMedia to allow users to post images on my BuddyPress site. Anyway I don’t want to alarm anybody but yesterday somebody hacked my website uploading a png image I suppose, there are articles online about infected png images. Is there any way (filters, options) to disable the upload of png files?

Thanks.

Hello @whitestorming,

You can try modifying the media file type using the filter rtmedia_allowed_types.

Reference document link - https://rtmedia.io/docs/developers/hooks/rtmedia_allowed_types/

It will help you to unset file of types png.

Thank you.