download route requires an actual document to be passed