set chunk
Test Workflow / test (push) Successful in 3s

This commit is contained in:
vladp
2026-01-07 12:50:40 +07:00
parent b9a401f113
commit f8673dd581
3 changed files with 3 additions and 3 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 : 1048576L;
Long chunkSize = totalChunks == 1 ? fileSize : 1000000L;
FileUploadSession session = FileUploadSession.builder()
.userId(userId)