]> git.proxmox.com Git - pve-manager.git/commit - www/manager6/storage/ContentView.js
fix #1710: ui: storage: add download from url button
authorLorenz Stechauner <l.stechauner@proxmox.com>
Thu, 1 Jul 2021 08:50:07 +0000 (10:50 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 2 Jul 2021 22:36:26 +0000 (00:36 +0200)
commitaf3c0a9287030c26b8bbf99fd5031c0e69ea4e31
treed0ce9895346a7a8098dadc45d20f70e937b85452
parent79035e5a0f0eaa887ff2ccb14d5bb3916e86e998
fix #1710: ui: storage: add download from url button

uses the common function PVE::Tools::download_file_from_url to
download a iso image or container template.

note: Only users with permissions `Sys.Audit` and `Sys.Modify` on
`/` are permitted to use the api endpoints due to security reasons.
(it is possible to download files from internal networks which would
be not visible/accessible from outside)

Signed-off-by: Lorenz Stechauner <l.stechauner@proxmox.com>
Reviewed-By: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/storage/Browser.js
www/manager6/storage/ContentView.js