enable uploading a document to couch from a file (#4256)