cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Caldecott (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-9852) cordova-plugin-camera file picker does not appear in browser
Date Fri, 23 Oct 2015 11:00:31 GMT

     [ https://issues.apache.org/jira/browse/CB-9852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rob Caldecott updated CB-9852:
------------------------------
    Description: 
Using latest (5.3.3) Cordova and cordova-plugin-camera 1.2.0, browser support to select an
image is not working. Each time you call navigator.camera.getPicture with sourceType = Camera.PictureSourceType.PHOTOLIBRARY
a new file input is appended to the document, but nothing actually happens.

Tested on Chrome 46 and Firefox 40.

To reproduce, create a basic Cordova project. Add browser as a platform then add the cordova-plugin-camera
plugin. Then add a button to your document which when clicked executes the following:

navigator.camera.getPicture(success, error, {
    sourceType: Camera.PictureSourceType.PHOTOLIBRARY
});

(include a suitable success/error handler).

Run with cordova emulate browser. When the above is executed, the following is inserted into
your document:

<input type="file" name="files[]">

Successive calls will add more of these. If you actually click on one then the file picker
will appear. But it seems that whatever simulates this click is not working.

  was:
Using latest (5.3.3) Cordova and cordova-plugin-camera 1.2.0, browser support to select an
image is not working. Each time you call navigator.camera.getPicture with sourceType = Camera.PictureSourceType.PHOTOLIBRARY
a new file input is appended to the document, but nothing actually happens.

Tested on Chrome 46 and Firefox 40.

To reproduce, create a basic Cordova project. Add the cordova-plugin-camera plugin. Then add
a button to your document which when clicked executes the following:

navigator.camera.getPicture(success, error, {
    sourceType: Camera.PictureSourceType.PHOTOLIBRARY
});

(include a suitable success/error handler).

When the above is executed, the following is inserted into your document:

<input type="file" name="files[]">

Successive calls will add more of these. If you actually click on one then the file picker
will appear. But it seems that whatever simulates this click is not working.


> cordova-plugin-camera file picker does not appear in browser
> ------------------------------------------------------------
>
>                 Key: CB-9852
>                 URL: https://issues.apache.org/jira/browse/CB-9852
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera
>    Affects Versions: 1.2.0
>         Environment: Windows, Chrome/Firefox
>            Reporter: Rob Caldecott
>
> Using latest (5.3.3) Cordova and cordova-plugin-camera 1.2.0, browser support to select
an image is not working. Each time you call navigator.camera.getPicture with sourceType =
Camera.PictureSourceType.PHOTOLIBRARY a new file input is appended to the document, but nothing
actually happens.
> Tested on Chrome 46 and Firefox 40.
> To reproduce, create a basic Cordova project. Add browser as a platform then add the
cordova-plugin-camera plugin. Then add a button to your document which when clicked executes
the following:
> navigator.camera.getPicture(success, error, {
>     sourceType: Camera.PictureSourceType.PHOTOLIBRARY
> });
> (include a suitable success/error handler).
> Run with cordova emulate browser. When the above is executed, the following is inserted
into your document:
> <input type="file" name="files[]">
> Successive calls will add more of these. If you actually click on one then the file picker
will appear. But it seems that whatever simulates this click is not working.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message