|
|
|
@ -760,6 +760,10 @@ foreach($index->search('')
@@ -760,6 +760,10 @@ foreach($index->search('')
|
|
|
|
|
$tmp |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
$filesize = filesize( |
|
|
|
|
$tmp |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
// Copy to local storage on enabled |
|
|
|
|
if ($config->snap->storage->local->enabled) |
|
|
|
|
{ |
|
|
|
@ -794,7 +798,7 @@ foreach($index->search('')
@@ -794,7 +798,7 @@ foreach($index->search('')
|
|
|
|
|
{ |
|
|
|
|
$allowed = false; |
|
|
|
|
|
|
|
|
|
if ($size <= $config->snap->storage->local->size->max) |
|
|
|
|
if ($filesize <= $config->snap->storage->local->size->max) |
|
|
|
|
{ |
|
|
|
|
$allowed = true; |
|
|
|
|
} |
|
|
|
@ -937,7 +941,7 @@ foreach($index->search('')
@@ -937,7 +941,7 @@ foreach($index->search('')
|
|
|
|
|
// Check size limits |
|
|
|
|
$allowed = false; |
|
|
|
|
|
|
|
|
|
if ($size <= $ftp->size->max) |
|
|
|
|
if ($filesize <= $ftp->size->max) |
|
|
|
|
{ |
|
|
|
|
$allowed = true; |
|
|
|
|
} |
|
|
|
|