How do I make it so all file attachments open in a new window?

On page and in modal window?