Fix broken document preview and download funtionality
Commit 83ce1165 changed the URLs to access the uploaded files for a document collection, without changing the frontend code. This resulted in the download and preview functionalities being broken for uploaded files -- this MR fixes it.