You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Filip Maj (Resolved) (JIRA)" <ji...@apache.org> on 2012/03/10 21:16:57 UTC
[jira] [Resolved] (CB-308) camera.getPicture default destination
has been FILE_URI but in code there is an error that it's wrong FILE_URL
not correct FILE_URI
[ https://issues.apache.org/jira/browse/CB-308?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Filip Maj resolved CB-308.
--------------------------
Resolution: Fixed
Thanks for submitting this bug. I have [patched the cordova-js project|http://git-wip-us.apache.org/repos/asf?p=incubator-cordova-js.git;a=commit;h=2af2ac9561100c563e8f3b7ca3383b67cdc17690] with this fix. When 1.6 gets released the fix will be in that release; otherwise you can also pull down the [cordova-js project|http://git-wip-us.apache.org/repos/asf?p=incubator-cordova-js.git;a=commit;h=2af2ac9561100c563e8f3b7ca3383b67cdc17690] to get the latest Android cordova.js file.
> camera.getPicture default destination has been FILE_URI but in code there is an error that it's wrong FILE_URL not correct FILE_URI
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: CB-308
> URL: https://issues.apache.org/jira/browse/CB-308
> Project: Apache Callback
> Issue Type: Bug
> Components: CordovaJS
> Affects Versions: 1.5.0
> Reporter: Lei Gu
> Assignee: Filip Maj
> Labels: javascript
> Fix For: 1.6.0
>
>
> I found that error when I'm reviewing the code on Github.The file is 'framework/assets/js/cordova.android.js'.
> The wrong code snippet in function cameraExport.getPicture is:
> var destinationType = Camera.DestinationType.FILE_URL; // wrong const var name, should be FILE_URI
> if (typeof options.destinationType == "number") {
> destinationType = options.destinationType;
> }
--
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