file method can now return raw content for more types than just PDF