1
0
Fork 0
mirror of synced 2024-06-02 19:04:49 +12:00

fix error

This commit is contained in:
Damodar Lohani 2021-12-07 14:00:42 +05:45
parent 7a86082fa7
commit af7f98a03f

View file

@ -609,7 +609,7 @@ App::post('/v1/storage/buckets/:bucketId/files')
throw new Exception('Invalid content-range header', 400);
}
if ($end === $size) {
if ($end === $fileSize) {
//if it's a last chunks the chunk size might differ, so we set the $chunks and $chunk to notify it's last chunk
$chunks = $chunk = -1;
} else {