fix error
This commit is contained in:
parent
7a86082fa7
commit
af7f98a03f
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue