mirror of
https://github.com/YGGverse/Yo.git
synced 2026-03-31 17:55:35 +00:00
compare compressed snap file size instead of document download size
This commit is contained in:
parent
f8c8aacf95
commit
488e090f97
1 changed files with 6 additions and 2 deletions
|
|
@ -760,6 +760,10 @@ foreach($index->search('')
|
||||||
$tmp
|
$tmp
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$filesize = filesize(
|
||||||
|
$tmp
|
||||||
|
);
|
||||||
|
|
||||||
// Copy to local storage on enabled
|
// Copy to local storage on enabled
|
||||||
if ($config->snap->storage->local->enabled)
|
if ($config->snap->storage->local->enabled)
|
||||||
{
|
{
|
||||||
|
|
@ -794,7 +798,7 @@ foreach($index->search('')
|
||||||
{
|
{
|
||||||
$allowed = false;
|
$allowed = false;
|
||||||
|
|
||||||
if ($size <= $config->snap->storage->local->size->max)
|
if ($filesize <= $config->snap->storage->local->size->max)
|
||||||
{
|
{
|
||||||
$allowed = true;
|
$allowed = true;
|
||||||
}
|
}
|
||||||
|
|
@ -937,7 +941,7 @@ foreach($index->search('')
|
||||||
// Check size limits
|
// Check size limits
|
||||||
$allowed = false;
|
$allowed = false;
|
||||||
|
|
||||||
if ($size <= $ftp->size->max)
|
if ($filesize <= $ftp->size->max)
|
||||||
{
|
{
|
||||||
$allowed = true;
|
$allowed = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue