Add download query param to assets endpoint

This commit is contained in:
rijkvanzanten
2020-10-19 12:45:10 -04:00
parent 552fbff5ed
commit 0f20f9ea7c
3 changed files with 14 additions and 5 deletions

View File

@@ -395,7 +395,7 @@ export default defineComponent({
}
function downloadFile() {
const filePath = getRootPath() + `assets/${props.primaryKey}`;
const filePath = getRootPath() + `assets/${props.primaryKey}?download`;
window.open(filePath, '_blank');
}