Fixes the document repository's upload/download and delete functions
Merge pull request #868 from nicolasbrossard/doc_repo_fix

Fixes the document repository's upload/download and delete functions