Start a new topic

File upload max size with Java

 

I’m having an issue with file upload size – only 10MB are being stored at Google. I use latest Java API 2.9.3.

Files with the sizes under 10MB are being uploaded correctly.

Below is the code I use to do the upload.

I know for sure that “destinationFile” is of correct size on Java server. So the following code is uploading only 10MB and skipping the rest.


myJavaClient.file().uploadBlocking(fileMetaData, destinationFile, new MetaUploadProgressListener() {

@Override

public void onSuccess(Void result) {

System.out.println("upload success!");

}

@Override

public void onFailure(Throwable error) {

System.out.println("upload progress change!");

}

@Override

public void progressChanged(MediaHttpUploader uploader) throws IOException {

System.out.println("upload progress change -> " + uploader.getUploadState());

if(uploader.getUploadState().equals("UPLOAD_COMPLETE")){

System.out.println("Iloaded Successfully!");

}

}

});

And no matter if file size is under or over 10MB – always getting successful output:

INFO [STDOUT] upload progress change -> UPLOAD_IN_PROGRESS

INFO [STDOUT] upload progress change -> INITIATION_STARTED

INFO [STDOUT] upload progress change -> INITIATION_COMPLETE

INFO [STDOUT] upload progress change -> UPLOAD_COMPLETE


Hello Mykola,


Let me attempt to reproduce this.


Thanks,

Mykola,


This is all set now.   We've released an updated version of our library that addresses this issue; you can grab that over here:  http://devcenter.kinvey.com/java/timeline


Thanks,

Mykola,


We have determined the root cause to be some outdated code in the java library.   Our engineer has identified a possible fix and is presently testing it.   We don't have an ETA for a release on this quite yet, but I would anticipate it either tomorrow or Monday.  I will update this thread again once the updated version of the library comes out.


Thanks for bringing this issue to our attention!

Hello Mykola,


I was able to reproduce this issue.  We are looking into this and should know more about this at some point tomorrow.


I will keep you appraised of changes in status on this.


Thanks,

Login or Signup to post a comment