diff --git a/build_config b/build_config index e43487927..56a9bfe23 100644 --- a/build_config +++ b/build_config @@ -25,7 +25,7 @@ cordova-plugin=cordova-plugin-appavailability cordova-plugin=cordova-plugin-filepicker cordova-plugin=cordova-plugin-document-viewer cordova-plugin=com-sarriaroman-photoviewer -cordova-plugin=cordova-plugin-filepath +cordova-plugin=https://github.com/vishwanath1004/cordova-plugin-filepath.git cordova-plugin=https://github.com/greybax/cordova-plugin-proguard.git cordova-plugin=https://github.com/Sunbird-Ed/sb-cordova-plugin-utility.git#release-4.1.0 cordova-plugin=https://github.com/Sunbird-Ed/sb-cordova-plugin-downloadmanager.git @@ -33,7 +33,7 @@ cordova-plugin=https://github.com/Sunbird-Ed/sb-cordova-plugin-db.git#release-4. cordova-plugin=https://github.com/Sunbird-Ed/sb-cordova-plugin-customtabs#release-5.0.2 --variable URL_SCHEME=@string/custom_scheme_url --variable URL_HOST=mobile cordova-plugin=cordova-sqlite-storage cordova plugin=cordova-plugin-googleplus -cordova-pligin=cordova-plugin-camera +cordova-plugin=https://github.com/vishwanath1004/cordova-plugin-camera.git cordova-plugin=cordova-plugin-telerik-imagepicker@2.3.3 cordova-plugin=cordova-plugin-filechooser cordova-plugin=cordova-plugin-media diff --git a/src/app/manage-learn/core/services/attachment/attachment.service.ts b/src/app/manage-learn/core/services/attachment/attachment.service.ts index 21e39e737..161930342 100644 --- a/src/app/manage-learn/core/services/attachment/attachment.service.ts +++ b/src/app/manage-learn/core/services/attachment/attachment.service.ts @@ -81,7 +81,7 @@ export class AttachmentService { text: this.texts["FRMELEMNTS_MSG_USE_FILE"], icon: "document", handler: () => { - path ? this.openLocalLibrary() : this.takePicture(this.camera.PictureSourceType.PHOTOLIBRARY); + path ? this.openLocalLibrary() : this.openFile(); return false; }, }, @@ -116,7 +116,7 @@ export class AttachmentService { text: this.texts["FRMELEMENTS_LBL_UPLOAD_IMAGE"], icon: "cloud-upload", handler: () => { - this.openLocalLibrary() + this.takePicture(this.camera.PictureSourceType.PHOTOLIBRARY, this.camera.MediaType.PICTURE); return false; }, },