From 2a6bf47bcefaf10952efdcc9da35f7df54d193d0 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Tue, 30 Nov 2021 13:46:47 +0545 Subject: [PATCH] fix chunked upload for tags - chunk start from 1 --- app/controllers/api/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index 3cafee4c9..1dcb9d106 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -477,7 +477,7 @@ App::post('/v1/functions/:functionId/tags') } else { // Calculate total number of chunks based on the chunk size i.e ($rangeEnd - $rangeStart) $chunks = (int) ceil($size / ($end + 1 - $start)); - $chunk = (int) ($start / ($end + 1 - $start)); + $chunk = (int) ($start / ($end + 1 - $start)) + 1; } }