media file validation