Add server support for uploading documents.