Added document upload. Basic impl.