[jira] [Commented] (CB-622) FileTransfer interface should provide progress monitoring

2013-01-21 Thread Andrew Grieve (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13558824#comment-13558824
 ] 

Andrew Grieve commented on CB-622:
--

gzip encoding is almost certainly the problem. There's another bug just for 
this: https://issues.apache.org/jira/browse/CB-1518
It's unfortunately a low priority right now, so no one is working on it. If 
you'd like to take a stab at fixing it though, that would be awesome!

If not, two ideas to help here:
-Would using XHR2 address your use-case?
-Might be able to disable gzip by setting the Accept-Encoding header to an 
empty string.


 FileTransfer interface should provide progress monitoring
 -

 Key: CB-622
 URL: https://issues.apache.org/jira/browse/CB-622
 Project: Apache Cordova
  Issue Type: Improvement
  Components: Android, BlackBerry, iOS, WP7
Affects Versions: 1.7.0
 Environment: Checked docs for iOS and Android, and in general.
Reporter: Brion Vibber
Assignee: Andrew Grieve
Priority: Minor
  Labels: FileTransfer, file
 Fix For: 2.2.0


 The FileTransfer upload and download interface seems to provide no way to 
 monitor progress of the upload/download, other than waiting for the entire 
 transfer to complete or fail.
 Being able to pass another callback for progress monitoring could be a useful 
 interface, this might get called with a byte count or something.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CB-622) FileTransfer interface should provide progress monitoring

2013-01-20 Thread Samik R (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13558438#comment-13558438
 ] 

Samik R commented on CB-622:


Cory/Anyone else: I just tried out file download progress bar. I first tested 
on android and works great. Then I tested on iPhone simulator (iOS 6.0), and it 
seems to me that progressEvent.lengthComputable is false, so I don't get any 
value for progressEvent.loaded. Does anyone know if iPhone simulator (and hence 
in iPhone/iPod etc.) webview always uses gzip encoding (assuming that is the 
issue here)? 

 FileTransfer interface should provide progress monitoring
 -

 Key: CB-622
 URL: https://issues.apache.org/jira/browse/CB-622
 Project: Apache Cordova
  Issue Type: Improvement
  Components: Android, BlackBerry, iOS, WP7
Affects Versions: 1.7.0
 Environment: Checked docs for iOS and Android, and in general.
Reporter: Brion Vibber
Assignee: Andrew Grieve
Priority: Minor
  Labels: FileTransfer, file
 Fix For: 2.2.0


 The FileTransfer upload and download interface seems to provide no way to 
 monitor progress of the upload/download, other than waiting for the entire 
 transfer to complete or fail.
 Being able to pass another callback for progress monitoring could be a useful 
 interface, this might get called with a byte count or something.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira