function tags upload chunk begin from 1
This commit is contained in:
parent
307114f2c5
commit
5ea1ab714e
1 changed files with 2 additions and 2 deletions
|
@ -477,7 +477,7 @@ App::post('/v1/functions/:functionId/tags')
|
||||||
} else {
|
} else {
|
||||||
// Calculate total number of chunks based on the chunk size i.e ($rangeEnd - $rangeStart)
|
// Calculate total number of chunks based on the chunk size i.e ($rangeEnd - $rangeStart)
|
||||||
$chunks = (int) ceil($size / ($end + 1 - $start));
|
$chunks = (int) ceil($size / ($end + 1 - $start));
|
||||||
$chunk = (int) ($start / ($end + 1 - $start));
|
$chunk = (int) ($start / ($end + 1 - $start)) + 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -498,7 +498,7 @@ App::post('/v1/functions/:functionId/tags')
|
||||||
if(!$tag->isEmpty()) {
|
if(!$tag->isEmpty()) {
|
||||||
$chunks = $tag->getAttribute('chunksTotal', 1);
|
$chunks = $tag->getAttribute('chunksTotal', 1);
|
||||||
if($chunk == -1) {
|
if($chunk == -1) {
|
||||||
$chunk = $chunks - 1;
|
$chunk = $chunks;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue