Added ability to pass non-base64 files.