diff --git a/src/_h5ai/client/js/inc/ext/download.js b/src/_h5ai/client/js/inc/ext/download.js index dfc9b42a..01400677 100644 --- a/src/_h5ai/client/js/inc/ext/download.js +++ b/src/_h5ai/client/js/inc/ext/download.js @@ -46,7 +46,7 @@ modulejs.define('ext/download', ['_', '$', 'core/settings', 'core/resource', 'co var type = settings.type, extension = (type === 'shell-zip') ? 'zip' : 'tar', query = { - action: 'passArchive', + action: 'download', as: (settings.packageName || location.getItem().label) + '.' + extension, type: type, hrefs: selectedHrefsStr diff --git a/src/_h5ai/server/php/inc/Api.php b/src/_h5ai/server/php/inc/Api.php index 8ecabb1d..56dddc82 100644 --- a/src/_h5ai/server/php/inc/Api.php +++ b/src/_h5ai/server/php/inc/Api.php @@ -100,7 +100,7 @@ class Api { } - else if ($action === "passArchive") { + else if ($action === "download") { json_fail(1, "downloads disabled", !$options["download"]["enabled"]);