Added ability to use a custom content-type when uploading each document. Defaults to "application/pdf".