mirror of
https://github.com/directus/directus.git
synced 2026-02-12 19:54:54 -05:00
Add download query param to assets endpoint
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user