Adds content type to file info and changes order of function