forge-api-java-client icon indicating copy to clipboard operation
forge-api-java-client copied to clipboard

ObjectsApi uploadChunk

Open ilseva opened this issue 5 years ago • 0 comments

Hi. I'm trying to use ObjectsApi.uploadChunk but I think there are one problem: in the signature it seems to need the whole file public ApiResponse<ObjectDetails> uploadChunk(String bucketKey, String objectName, Integer contentLength, String contentRange, String sessionId, File body, String contentDisposition, String ifMatch, Authentication oauth2, Credentials credentials) throws ApiException, Exception { but if I have to upload a chunk why do I need to pass the whole file? I changed signature with byte[] instead of File and seems it's ok. What do you think? Thanks.

ilseva avatar Jan 05 '21 16:01 ilseva