define allowed file pattern for media field