set chunk-size to 1000000
Test Workflow / test (push) Successful in 2s

This commit is contained in:
vladp
2025-12-26 19:50:32 +07:00
parent 9541e89651
commit 86e7371ffe
3 changed files with 9 additions and 15 deletions
@@ -102,7 +102,7 @@ public class FileUploadServiceImpl implements FileUploadService {
int totalChunks = (int) Math.ceil((double) fileSize / chunkSize);
log.debug("File will be split into {} chunks (chunk size: {} bytes)",
totalChunks, chunkSize);
Long chunkSize = totalChunks == 1 ? fileSize : 5242880L;
Long chunkSize = totalChunks == 1 ? fileSize : 1000000L;
FileUploadSession session = FileUploadSession.builder()
.userId(userId)