TiExtendNW icon indicating copy to clipboard operation
TiExtendNW copied to clipboard

Wrong progress value on file uploads

Open inakiabt opened this issue 11 years ago • 1 comments

The upload progress value must be between 0 and 1 and I'm getting values greater than 1. I'm using the Ti-Amazon-S3 example.

...
        onsendstream: function(e) {
            App.debug('PROGRESS: ' + e.progress);
        }
...

output:

...
[DEBUG] PROGRESS: 2.6802685546875
[DEBUG] PROGRESS: 2.7602685546875
[DEBUG] PROGRESS: 2.8402685546875
[DEBUG] PROGRESS: 2.9202685546875
[DEBUG] PROGRESS: 3.0002685546875
[DEBUG] PROGRESS: 3.0802685546875

inakiabt avatar Feb 11 '14 17:02 inakiabt

@inakiabt I'm sorry reply late. I tried to research easily. As a result, I found that the problem occurs only upload to Amazon S3. MKNetworkKit body is outputting the value of progress. Maybe there is a problem here.

I think I'll try to investigate a little more. Thanks!

ryugoo avatar Mar 07 '14 06:03 ryugoo