You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Cory Thompson (JIRA)" <ji...@apache.org> on 2012/08/09 08:34:19 UTC
[jira] [Comment Edited] (CB-622) FileTransfer interface should
provide progress monitoring
[ https://issues.apache.org/jira/browse/CB-622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13431592#comment-13431592 ]
Cory Thompson edited comment on CB-622 at 8/9/12 6:33 AM:
----------------------------------------------------------
I've implemented the IOS version of this code.
https://github.com/coryjthompson/incubator-cordova-ios/compare/filetransfer-progress
First time i've done anything in Objective C so any feedback would be appreciated.
The javascript code has no modifications except it must merge the latest version from the master.
https://github.com/apache/incubator-cordova-js/commit/8c46a970a0719d0f16a225b75421ecf6f12dcc02
eg.
exec(win, fail, 'FileTransfer', 'upload', [filePath, server, fileKey, fileName, mimeType, params, trustAllHosts, chunkedMode, header, this._id]);
Thanks Brion for all your work towards this.
was (Author: coryjthompson):
I've implemented the IOS version of this code.
https://github.com/coryjthompson/incubator-cordova-ios/compare/filetransfer-progress
First time i've done anything in Objective C so any feedback would be appreciated.
Thanks Brion for all your work towards this.
> 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
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira