Skip to content
Snippets Groups Projects
Commit 135ee5d0 authored by Jan Zickermann's avatar Jan Zickermann
Browse files

OZG-4097 send-attachment: Override contentLength

parent abea538c
No related branches found
No related tags found
Loading
......@@ -25,6 +25,13 @@ public record FileChunkInfo(
public InputStream getInputStream() {
return new LimitedInputStream(fileInputStream, CHUNK_SIZE);
}
@Override
public long contentLength() {
return chunkIndex == upload.numberOfChunks() - 1
? upload.file().getSize() % CHUNK_SIZE
: CHUNK_SIZE;
}
};
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment