Update library/media/class.media.lib.php

Add a mime type verification for uploaded files to prevent code execution through this file