Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E555D18227 for ; Thu, 25 Feb 2016 09:22:18 +0000 (UTC) Received: (qmail 28892 invoked by uid 500); 25 Feb 2016 09:22:18 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 28815 invoked by uid 500); 25 Feb 2016 09:22:18 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 28795 invoked by uid 99); 25 Feb 2016 09:22:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Feb 2016 09:22:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 25C202C1F5A for ; Thu, 25 Feb 2016 09:22:18 +0000 (UTC) Date: Thu, 25 Feb 2016 09:22:18 +0000 (UTC) From: "Thillaiganesh Chan (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-9898) ios getPicture() doesn't store image permanently, only saves to temp directory MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-9898?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15166975#comment-15166975 ] Thillaiganesh Chan commented on CB-9898: ---------------------------------------- Current Implementation is Correct. Event though the file return path is from \Tmp folder, a separate image copy is stored in the image gallery. Which is persistent. Scenario 1: When Plugin-Camera returns a file URL (which will be in Tmp folder), if user needs to store the file permanently, it should be moved to Documents Folder. Scenario 2: When Plugin-Camera returns a file URL (which will be in Tmp folder), if user needs just to share or upload to social media or similar. No further action is needed. > ios getPicture() doesn't store image permanently, only saves to temp directory > ------------------------------------------------------------------------------ > > Key: CB-9898 > URL: https://issues.apache.org/jira/browse/CB-9898 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Camera > Affects Versions: 1.2.0 > Reporter: Michael Schmidt > Labels: iOS, mustfix, reproduced, triaged > > Camera options: > - destinationType: Camera.DestinationType.FILE_URI, > - saveToPhotoAlbum: true, > - sourceType: Camera.PictureSourceType.CAMERA, > Situation: getPicture() on iOS saves a newly taken image into the cordova.file.tempDirectory by default > Problem: After closing & re-opening the app, the taken pictures are not available any more in the app - this functionality is only on iOS, all other platforms directly persist > This requires for every camera usage a workaround on ios - Move the file to permanent storage after taking an image: > http://www.joshmorony.com/store-camera-photos-permanently-using-phonegap-ionic-ngcordova/ > -> directly save the images in permanent storage on iOS > Further mentions: > http://stackoverflow.com/questions/33249522/angular-and-ionic-camera-function-wont-save-photo > http://stackoverflow.com/questions/27910783/cordova-move-file-using-the-file-url -- 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