support for PDFUploader, which doesn't do buffered reads.