mirror of
https://github.com/unraid/webgui.git
synced 2026-03-20 20:02:44 -05:00
VM Settings: prevent virtio-iso download if ISO share/path doesn't exist
This commit is contained in:
@@ -461,8 +461,8 @@ switch ($action) {
|
||||
$arrResponse = ['error' => 'Unknown version: ' . $_POST['download_version']];
|
||||
} else if (empty($_POST['download_path'])) {
|
||||
$arrResponse = ['error' => 'Specify a ISO storage path first'];
|
||||
//} else if (!is_dir($_POST['download_path'])) {
|
||||
// $arrResponse = ['error' => 'ISO storage path doesn\'t exist, please create the user share (or empty folder) first'];
|
||||
} else if (!is_dir($_POST['download_path'])) {
|
||||
$arrResponse = ['error' => 'ISO storage path doesn\'t exist, please create the user share (or empty folder) first'];
|
||||
} else {
|
||||
@mkdir($_POST['download_path'], 0777, true);
|
||||
$_POST['download_path'] = realpath($_POST['download_path']) . '/';
|
||||
|
||||
Reference in New Issue
Block a user