UploadCallback Difficult

I’m trying to use UploadCallback (Java/Android SDK) with no success. The method onProgressUpdate is been called very fast from 1 to 100, not representing the real progress. Can you help me? Here is my code:


UploadCallback uploadCallback = new UploadCallback() {
                                @Override
                                public void onProgressUpdate(Integer progress) {
                                    UI.getCurrent().access(new Runnable() {
                                        @Override
                                        public void run() {
                                            progressBar.setValue(new Float(progress/100));
                                            status.setValue("Step 4/4: Uploading Zip to the cloud... " + progress + "% done");
                                        }
                                    });
                                }
                            };

                            Backendless.Files.upload(zipFile.getFile(), "/zips", true, uploadCallback);

[Thank you a lot!

Hi Alexandre,

Could you please provide file you are tring to upload?

Regards,

Denys

Hi Denys, I tried with a lot of files. The upload occurs with success after all, the only problem is that UploadCallback returns progress in a wrong time. Then, after progress shows 100%, the upload is just in the begining. Maybe I did something wrong when I instantiate UploadCallback.

Here is a file that I used to test.

wordpress-4.1.1.zip (6.41MB)

Hi Alexandre,

We have created internal ticket for this issue (BKNDLSS-12083)

Regards,

Denys

Denys,

Thank you.
How can I follow this ticket (BKNDLSS-12083)?

I want to know the status of ticket BKNDLSS-12083.
The problem persists in current version of Java SDK (3.0.17.1).

Thank you.

Hi Alexandre.
Sorry for waiting. This ticket still is in progress.