Added ability to upload documents to server