figure out how to load the file by the content type