Can create VM from UI
This commit is contained in:
@ -68,10 +68,10 @@ function UploadIsoFileCard(p: {
|
||||
);
|
||||
|
||||
const handleChange = (newValue: File | null) => {
|
||||
if (newValue && newValue.size > ServerApi.Config.iso_max_size) {
|
||||
if (newValue && newValue.size > ServerApi.Config.constraints.iso_max_size) {
|
||||
alert(
|
||||
`The file is too big (max size allowed: ${filesize(
|
||||
ServerApi.Config.iso_max_size
|
||||
ServerApi.Config.constraints.iso_max_size
|
||||
)}`
|
||||
);
|
||||
return;
|
||||
|
Reference in New Issue
Block a user