-
Notifications
You must be signed in to change notification settings - Fork 26
Use Camera as Source Instead of a Gallery File? #24
Comments
with Cordova you should use "Camera" plugin: |
Hi, This is what I have in my config.xml (had to remove the opening and closing brackets or the do not appear here: preference name="permissions" value="none" I had also tried adding the following, but it did not make a difference: and this is the image capture portion of my form, where myupfile is an extension of Fileup.js:
Thank You! |
native cordova Camera plugin is not related to Fileup component. This is completely different feature. This plugin has own javascript API. Configuration of camera plugin has no effect to Fileup functionality. If you enable access to camera via feature config and you have no access to Camera in Fileup - this can be a device (or Android version) related trouble. Try to test your app in Android emulator. |
Thanks again for your quick reply. It's helpful to know that I don't need to change any coding in the program. Thank you! |
Still no luck...is it at all possible that I need to change the form to accept something like:
instead of or in addition to:
I keep seeing references to Ext.device.Camera.capture to allow both options - camera and input from an existing file, but have no idea how to combine it with the already working code from your example. Thanks |
Thanks again, the upload works great. I've been able to get the camera to open - instead of only files/gallery, and this is the change that allows it. Instead of using: itemId: 'fileLoadBtn', use and the controller code for phonegap's camera (including sourceType: navigator.camera.PictureSourceType.CAMERA). With the simple button xtype, the camera opens fine. However, then, of course, the fileupload coding is not called. If I used the same phonegap coding and sourceType with xtype: 'fileupload', the camera is not offered as an option, only the gallery and other phone storage. How can I get 'fileupload' to also include the camera? Thanks |
Hi, component xtype: 'fileupload' is extended from Ext.Button. Kostya On Sun, Jun 21, 2015 at 9:07 PM, designdit notifications@github.com wrote:
|
Hello,
Thank you for this feature! I have been able to make it work.
I'm wondering how I can allow the user the option to upload from file or directly from the camera. Currently, even after packaging, the browse/upload function only allows files from storage. Do you know where/what I need to change to allow a picture from the camera? I have added all required permissions to the packaging.
Thank you for your help and thank you for the feature!
The text was updated successfully, but these errors were encountered: