Fix file type not being correctly identified if data-href is used